[java] nullability annotation copying logic restored; test added (IDEA-CR-6810)

This commit is contained in:
Roman Shevchenko
2015-11-24 11:42:14 +01:00
parent e4bde377a9
commit eb5890cc8f
5 changed files with 36 additions and 9 deletions
@@ -0,0 +1,11 @@
// "Create field for parameter 'name'" "true"
import org.jetbrains.annotations.NotNull;
class Test {
private String myName;
void f(@NotNull String name) {
myName = name;
}
}
@@ -0,0 +1,8 @@
// "Create field for parameter 'name'" "true"
import org.jetbrains.annotations.NotNull;
class Test {
void f(@NotNull String <caret>name) {
}
}