mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-30 18:20:52 +07:00
In this case, we can assume that annotation-processing code is smart enough to use super-annotation. Fixes IDEA-158731 "Anonymous Foo can be replaced with lambda" is not suggested when method is annotated GitOrigin-RevId: de8c6f15e742b4ee4df02ecef5b230752d292114
18 lines
294 B
Java
18 lines
294 B
Java
// "Replace with lambda" "true"
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
interface Bar {}
|
|
interface Foo {
|
|
@Nullable
|
|
String foo(Bar bar);
|
|
}
|
|
|
|
class X {
|
|
Foo test() {
|
|
return new <caret>Foo() {
|
|
@Nullable
|
|
@Override
|
|
public String foo(Bar bar) {return null;}
|
|
};
|
|
}
|
|
} |