convert field to local: clear final modifier when used for write (IDEA-192735)

This commit is contained in:
Anna Kozlova
2018-05-28 18:54:02 +03:00
parent 038384a6e3
commit 323a164d0c
5 changed files with 53 additions and 16 deletions
@@ -0,0 +1,9 @@
// "Convert to local" "true"
class Test {
int getFoo1() {
int myFoo = 1;
myFoo = 5;
return myFoo;
}
}
@@ -0,0 +1,10 @@
// "Convert to local" "true"
class Test {
private int my<caret>Foo;
int getFoo1() {
myFoo = 1;
myFoo = 5;
return myFoo;
}
}