|
|
@ -283,12 +283,9 @@ public class NewExprent extends Exprent { |
|
|
|
Exprent expr = InvocationExprent.unboxIfNeeded(parameters.get(i)); |
|
|
|
Exprent expr = InvocationExprent.unboxIfNeeded(parameters.get(i)); |
|
|
|
VarType leftType = constructor.getDescriptor().params[i]; |
|
|
|
VarType leftType = constructor.getDescriptor().params[i]; |
|
|
|
|
|
|
|
|
|
|
|
if (i == parameters.size() - 1 && expr.getExprType() == VarType.VARTYPE_NULL) { |
|
|
|
if (i == parameters.size() - 1 && expr.getExprType() == VarType.VARTYPE_NULL && probablySyntheticParameter(leftType.value)) { |
|
|
|
ClassNode node = DecompilerContext.getClassProcessor().getMapRootClasses().get(leftType.value); |
|
|
|
|
|
|
|
if (node != null && node.namelessConstructorStub) { |
|
|
|
|
|
|
|
break; // skip last parameter of synthetic constructor call
|
|
|
|
break; // skip last parameter of synthetic constructor call
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!firstParam) { |
|
|
|
if (!firstParam) { |
|
|
|
buf.append(", "); |
|
|
|
buf.append(", "); |
|
|
@ -360,6 +357,11 @@ public class NewExprent extends Exprent { |
|
|
|
return buf; |
|
|
|
return buf; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static boolean probablySyntheticParameter(String className) { |
|
|
|
|
|
|
|
ClassNode node = DecompilerContext.getClassProcessor().getMapRootClasses().get(className); |
|
|
|
|
|
|
|
return node != null && node.type == ClassNode.CLASS_ANONYMOUS; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private static String getQualifiedNewInstance(String classname, List<Exprent> lstParams, int indent, BytecodeMappingTracer tracer) { |
|
|
|
private static String getQualifiedNewInstance(String classname, List<Exprent> lstParams, int indent, BytecodeMappingTracer tracer) { |
|
|
|
ClassNode node = DecompilerContext.getClassProcessor().getMapRootClasses().get(classname); |
|
|
|
ClassNode node = DecompilerContext.getClassProcessor().getMapRootClasses().get(classname); |
|
|
|
|
|
|
|
|
|
|
|