copy also nullable annotations when create constructor parameter from field (IDEA-164493)

This commit is contained in:
Anna.Kozlova
2016-11-25 12:50:54 +01:00
parent df3abfd8c3
commit 57bd0325ef
3 changed files with 21 additions and 3 deletions
@@ -0,0 +1,10 @@
// "Add constructor parameter" "true"
import org.jetbrains.annotations.*;
class A {
@Nullable private final Object field;
A(@Nullable Object field, String... strs) {
this.field = field;
}
}
@@ -0,0 +1,9 @@
// "Add constructor parameter" "true"
import org.jetbrains.annotations.*;
class A {
@Nullable private final Object <caret>field;
A(String... strs) {
}
}