simplify AnnotateMethodFix

This commit is contained in:
Dmitry Batkovich
2017-08-03 15:23:11 +03:00
parent 2ba85a182d
commit ca93a04a0a
11 changed files with 38 additions and 166 deletions

View File

@@ -1,19 +0,0 @@
// "Annotate method as '@NotNull'" "true"
import org.jetbrains.annotations.NotNull;
class X {
@NotNull
String foo() {
return "X";
}
}
class Y extends X{
String foo() {
return "Y";
}
}
class Z extends Y {
String foo<caret>() { // trigger quick fix for inspection here
return "Z";
}
}

View File

@@ -1,21 +0,0 @@
// "Annotate method as '@NotNull'" "true"
import org.jetbrains.annotations.NotNull;
class X {
@NotNull
String annotateBase() {
return "X";
}
}
class Y extends X{
@NotNull
String annotateBase() {
return "Y";
}
}
class Z extends Y {
@NotNull
String annotateBase<caret>() { // trigger quick fix for inspection here
return "Z";
}
}

View File

@@ -1,19 +0,0 @@
// "Annotate method as '@NotNull'" "true"
import org.jetbrains.annotations.NotNull;
class X {
@NotNull
String foo() {
return "X";
}
}
class Y extends X{
String foo() {
return "Y";
}
}
class Z extends Y {
String foo<caret>() { // trigger quick fix for inspection here
return "Z";
}
}

View File

@@ -1,19 +0,0 @@
// "Annotate method as '@NotNull'" "true"
import org.jetbrains.annotations.NotNull;
class X {
@NotNull
String annotateBase() {
return "X";
}
}
class Y extends X{
String annotateBase() {
return "Y";
}
}
class Z extends Y {
String annotateBase<caret>() { // trigger quick fix for inspection here
return "Z";
}
}