mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 02:38:59 +07:00
anonym -> lambda, method ref: do not suggest replacement when default method is called out of functional interface context
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// "Replace with method reference" "false"
|
||||
class Test {
|
||||
interface InOut {
|
||||
void run() throws IOException;
|
||||
default void foo(){}
|
||||
}
|
||||
|
||||
InOut bind() {
|
||||
return new In<caret>Out() {
|
||||
@Override
|
||||
public void run() throws IOException {
|
||||
foo();
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user