introduce local variable intention should not go to outer anonymous class (IDEA-141716)

This commit is contained in:
Anna Kozlova
2015-06-23 14:16:10 +03:00
parent 47c1555d7f
commit 28f8cd68d1
4 changed files with 37 additions and 2 deletions

View File

@@ -0,0 +1,12 @@
// "Introduce local variable" "true"
class a {
void a() {
list.add(new Runnable(){
@Override
public void run() {
int i = Integer.parseInt("10");
}
})
}
}

View File

@@ -0,0 +1,12 @@
// "Introduce local variable" "true"
class a {
void a() {
list.add(new Runnable(){
@Override
public void run() {
Integer.parseInt("10")<caret>
}
})
}
}