EA-41231 (omit synthetic inner class constructor parameter)
This commit is contained in:
@@ -250,7 +250,7 @@ public class ClassWriter {
|
||||
for (ClassNode inner : node.nested) {
|
||||
if (inner.type == ClassNode.CLASS_MEMBER) {
|
||||
StructClass innerCl = inner.classStruct;
|
||||
boolean isSynthetic = (inner.access & CodeConstants.ACC_SYNTHETIC) != 0 || innerCl.isSynthetic();
|
||||
boolean isSynthetic = (inner.access & CodeConstants.ACC_SYNTHETIC) != 0 || innerCl.isSynthetic() || inner.namelessConstructorStub;
|
||||
boolean hide = isSynthetic && DecompilerContext.getOption(IFernflowerPreferences.REMOVE_SYNTHETIC) ||
|
||||
wrapper.getHiddenMembers().contains(innerCl.qualifiedName);
|
||||
if (hide) continue;
|
||||
|
||||
@@ -359,6 +359,7 @@ public class ClassesProcessor {
|
||||
public Set<String> enclosingClasses = new HashSet<String>();
|
||||
public ClassNode parent;
|
||||
public LambdaInformation lambdaInformation;
|
||||
public boolean namelessConstructorStub = false;
|
||||
|
||||
public ClassNode(String content_class_name,
|
||||
String content_method_name,
|
||||
|
||||
@@ -79,6 +79,7 @@ public class NestedClassProcessor {
|
||||
DecompilerContext.getLogger().writeMessage(message, IFernflowerLogger.Severity.WARN);
|
||||
child.simpleName = "NamelessClass_" + (++nameless);
|
||||
}
|
||||
child.namelessConstructorStub = !cl.hasModifier(CodeConstants.ACC_STATIC) && cl.getMethods().size() + cl.getFields().size() == 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user