insert same notnull annotation as exist on the existing field (IDEA-79436)

This commit is contained in:
anna
2011-12-29 13:07:29 +01:00
parent c81e2d4b9a
commit c3ce1ae00f
9 changed files with 78 additions and 25 deletions

View File

@@ -0,0 +1,9 @@
// "Add constructor parameter" "true"
class A {
@javax.annotation.Nonnull private final Object field;
A(@javax.annotation.Nonnull Object field, String... strs) {
this.field = field;<caret>
}
}

View File

@@ -0,0 +1,8 @@
// "Add constructor parameter" "true"
class A {
@javax.annotation.Nonnull private final Object <caret>field;
A(String... strs) {
}
}