mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 01:09:46 +07:00
redundant lambda code block: do not suggest change void/value compatibility
This commit is contained in:
@@ -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;
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user