mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-177198 Incorrect quick-fix for @NotNull/@Nullable problems inspection
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
class Test {
|
||||
|
||||
public I getI() {
|
||||
return this::<warning descr="Not annotated method is used as an override for a method annotated with NotNull">getMy<caret>String</warning>;
|
||||
}
|
||||
|
||||
String getMyString() {
|
||||
return toString();
|
||||
}
|
||||
}
|
||||
|
||||
interface I {
|
||||
@NotNull
|
||||
String getString();
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
class Test {
|
||||
|
||||
public I getI() {
|
||||
return this::getMyString;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
String getMyString() {
|
||||
return toString();
|
||||
}
|
||||
}
|
||||
|
||||
interface I {
|
||||
@NotNull
|
||||
String getString();
|
||||
}
|
||||
Reference in New Issue
Block a user