mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
convert field to local: support fields used in multiple methods (IDEA-108517)
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
// "Convert to local" "true"
|
||||
class Test {
|
||||
|
||||
int getFoo1() {
|
||||
int myFoo = 1;
|
||||
return myFoo;
|
||||
}
|
||||
|
||||
int getFoo2() {
|
||||
int myFoo = 2;
|
||||
return myFoo;
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
// "Convert to local" "true"
|
||||
class Test {
|
||||
private int my<caret>Foo;
|
||||
|
||||
int getFoo1() {
|
||||
myFoo = 1;
|
||||
return myFoo;
|
||||
}
|
||||
|
||||
int getFoo2() {
|
||||
myFoo = 2;
|
||||
return myFoo;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user