Populate class nesting information

Co-authored-by: LlamaLad7 <[email protected]>
This commit is contained in:
PlayerandLlamaLad7 authored and GitHub committed 2025-07-01 11:52:59 -04:00
1 parent 1d7fff6e64
commit a64ce0d7cc
1 file changed
+3 -3
@@ -950,12 +950,12 @@ public final class ClassInfo {
this.fields.add(new Field(field.getName(), org.objectweb.asm.Type.getDescriptor(field.getType()), field.getModifiers()));
}
this.isProbablyStatic = true;
this.isProbablyStatic = cls.getEnclosingClass() == null || Modifier.isStatic(cls.getModifiers());
this.methodMapper = null;
this.access = cls.getModifiers();
this.isInner = false;
this.outerName = null;
this.isInner = cls.getEnclosingClass() != null;
this.outerName = cls.getDeclaringClass() != null ? getName(cls.getDeclaringClass()) : null;
}
private static String getName(Class<?> cls) {