inline: choose top level inner class to control flow (IDEA-57027)

This commit is contained in:
anna
2010-08-05 15:54:23 +04:00
parent a9bb49eb29
commit 12fa2254f7
4 changed files with 53 additions and 4 deletions
@@ -0,0 +1,21 @@
public class In {
void fool() {
final boolean delete = narr();
new Runnable() {
public void run() {
new Runnable() {
public void run() {
if (del<caret>ete) {
}
}
}.run();
}
};
}
boolean narr() {
return false;
}
}
@@ -0,0 +1,20 @@
public class In {
void fool() {
new Runnable() {
public void run() {
new Runnable() {
public void run() {
if (narr()) {
}
}
}.run();
}
};
}
boolean narr() {
return false;
}
}
@@ -34,6 +34,10 @@ public class InlineLocalTest extends LightCodeInsightTestCase {
doTest(false);
}
public void testInnerInnerClass() throws Exception {
doTest(true);
}
public void testIDEADEV950 () throws Exception {
doTest(false);
}