EA-78630 - CCE: TrivialFunctionalExpressionUsageInspection$ReplaceWithLambdaBodyFix.replaceWithLambdaBody

This commit is contained in:
Anna.Kozlova
2016-04-22 17:02:00 +02:00
parent f7f379e5e6
commit 1a2b94105e
2 changed files with 182 additions and 144 deletions
@@ -0,0 +1,13 @@
// "Replace method call on lambda with lambda body" "false"
import java.util.function.Supplier;
class Test {
{
System.out.println(((Supplier<String>)() -> {
switch () {
default:
return "";
}
}).g<caret>et());
}
}