mirror of
https://github.com/FalsePattern/FalsePatternLib.git
synced 2026-11-11 18:27:32 +00:00
Clean up some nesting
This commit is contained in:
1 file changed
+9
-6
+9
-6
@@ -37,13 +37,16 @@ public class ConfigOrderTransformer implements IClassNodeTransformer {
|
||||
@Override
|
||||
public void transform(ClassNode cn, String transformedName, boolean obfuscated) {
|
||||
int order = 0;
|
||||
outer:
|
||||
for (val field: cn.fields) {
|
||||
if ((field.access & Opcodes.ACC_PUBLIC) != 0 && (field.access & Opcodes.ACC_STATIC) != 0 && (field.access & Opcodes.ACC_FINAL) == 0) {
|
||||
if (field.visibleAnnotations != null) {
|
||||
for (val ann: field.visibleAnnotations) {
|
||||
if (DESC_CONFIG_IGNORE.equals(ann.desc)) {
|
||||
continue;
|
||||
}
|
||||
if ((field.access & Opcodes.ACC_PUBLIC) == 0 ||
|
||||
(field.access & Opcodes.ACC_STATIC) == 0 ||
|
||||
(field.access & Opcodes.ACC_FINAL) != 0) {
|
||||
continue;
|
||||
} else if (field.visibleAnnotations != null) {
|
||||
for (val ann : field.visibleAnnotations) {
|
||||
if (DESC_CONFIG_IGNORE.equals(ann.desc)) {
|
||||
continue outer;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user