From 0255eb3ba5b32358b7f6dd92e6036b6857314374 Mon Sep 17 00:00:00 2001 From: "Egor.Ushakov" Date: Tue, 10 Jan 2017 18:49:05 +0300 Subject: [PATCH] IDEA-149813 Decompiler has lost generic parameter - fixed incorrect warning for lambdas --- .../java/decompiler/modules/decompiler/exps/NewExprent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/jetbrains/java/decompiler/modules/decompiler/exps/NewExprent.java b/src/org/jetbrains/java/decompiler/modules/decompiler/exps/NewExprent.java index f72e764..2db188f 100644 --- a/src/org/jetbrains/java/decompiler/modules/decompiler/exps/NewExprent.java +++ b/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)); } 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); }