IDEA-177198 Incorrect quick-fix for @NotNull/@Nullable problems inspection

This commit is contained in:
peter
2017-08-07 18:29:40 +02:00
parent dec0d16597
commit a0fc4d3828
4 changed files with 44 additions and 9 deletions
@@ -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();
}
@@ -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();
}