redundant lambda code block: do not suggest change void/value compatibility

This commit is contained in:
Anna Kozlova
2014-09-03 16:53:02 +04:00
parent 9097465506
commit 32448804ae
4 changed files with 33 additions and 7 deletions

View File

@@ -0,0 +1,19 @@
// "Replace with expression lambda" "false"
interface A {
int m(int x);
}
interface B {
void m(boolean x);
}
abstract class X {
abstract void foo(A j);
abstract void foo(B i);
void bar(Object o) {
foo(x -> {
retu<caret>rn x += 1;
});
}
}