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

This commit is contained in:
Egor.Ushakov
2017-01-10 18:49:05 +03:00
parent cb133af01e
commit 0255eb3ba5

View File

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