mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 10:48:09 +07:00
annotate method if asked even it's (implicitly) inferred as NotNull
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
// "Annotate overridden methods as '@NotNull'" "true"
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
abstract class P2 {
|
||||
@NotNull<caret>
|
||||
String foo(@NotNull String p) {
|
||||
return p;
|
||||
}
|
||||
|
||||
Object o = new P2() {
|
||||
@NotNull
|
||||
@Override
|
||||
String foo(String p) {
|
||||
return "";
|
||||
}
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// "Annotate overridden methods as '@NotNull'" "true"
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
abstract class P2 {
|
||||
@NotNull<caret>
|
||||
String foo(@NotNull String p) {
|
||||
return p;
|
||||
}
|
||||
|
||||
Object o = new P2() {
|
||||
@Override
|
||||
String foo(String p) {
|
||||
return "";
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user