mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-22 22:41:25 +07:00
Field can be local: added support for nested and local classes (IDEA-206647)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// "Convert field to local variable in method 'test'" "true"
|
||||
class Foo {
|
||||
void test() {
|
||||
class Bar {
|
||||
|
||||
void test() {
|
||||
int x = 2; // could be local
|
||||
System.out.println(x);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user