introduce field: fix introducing in anonymous class; fix enclosing constructor (IDEA-66774)

This commit is contained in:
anna
2011-03-18 17:24:27 +01:00
parent e4c7048698
commit 938868c348
5 changed files with 51 additions and 4 deletions

View File

@@ -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);
}
};
}
}

View File

@@ -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);
}
};
}
}