create field from parameter even if parameter is already used in assignment

IDEA-192896
This commit is contained in:
Anna Kozlova
2018-05-29 20:54:23 +03:00
parent 489d6204bd
commit 5d77379fd3
4 changed files with 47 additions and 4 deletions
@@ -0,0 +1,13 @@
// "Create field for parameter 'p1'" "true"
class Test{
int b;
@org.jetbrains.annotations.NotNull
private final String myP1;
Test(String p1){
b = p1.length();
myP1 = p1;
}
}
@@ -0,0 +1,9 @@
// "Create field for parameter 'p1'" "true"
class Test{
int b;
Test(String p<caret>1){
b = p1.length();
}
}