add constructor parameter from field: annotate as @NotNull if necessary (IDEA-59977)

This commit is contained in:
anna
2011-06-15 17:16:12 +04:00
parent 1edaf116ce
commit d008da0ec2
3 changed files with 26 additions and 0 deletions
@@ -0,0 +1,10 @@
// "Add constructor parameter" "true"
import org.jetbrains.annotations.*;
class A {
@NotNull private final Object field;
A(@NotNull Object field, String... strs) {
this.field = field;<caret>
}
}
@@ -0,0 +1,9 @@
// "Add constructor parameter" "true"
import org.jetbrains.annotations.*;
class A {
@NotNull private final Object <caret>field;
A(String... strs) {
}
}