IDEA-149813 Decompiler has lost generic parameter - fixed incorrect warning for lambdas

master
Egor.Ushakov 8 years ago
parent cb133af01e
commit 0255eb3ba5
  1. 2
      src/org/jetbrains/java/decompiler/modules/decompiler/exps/NewExprent.java

@ -191,7 +191,7 @@ public class NewExprent extends Exprent {
buf.append(GenericMain.getGenericCastTypeName(descriptor.superclass)); buf.append(GenericMain.getGenericCastTypeName(descriptor.superclass));
} }
else { else {
if (descriptor.superinterfaces.size() > 1) { if (descriptor.superinterfaces.size() > 1 && !lambda) {
DecompilerContext.getLogger().writeMessage("Inconsistent anonymous class signature: " + child.classStruct.qualifiedName, DecompilerContext.getLogger().writeMessage("Inconsistent anonymous class signature: " + child.classStruct.qualifiedName,
IFernflowerLogger.Severity.WARN); IFernflowerLogger.Severity.WARN);
} }

Loading…
Cancel
Save