mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 02:59:33 +07:00
introduce field: fix introducing in anonymous class; fix enclosing constructor (IDEA-66774)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
class TestRefactoring {
|
||||
public final Integer integer;
|
||||
|
||||
public TestRefactoring() {
|
||||
integer = new Integer("0");
|
||||
Runnable r = new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
System.out.println(integer);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
class TestRefactoring {
|
||||
public TestRefactoring() {
|
||||
Runnable r = new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
Integer to<caret>Field = new Integer("0");
|
||||
System.out.println(toField);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user