move members: no need to align according to nested classes (IDEA-106175)

This commit is contained in:
anna
2013-04-25 14:14:50 +02:00
parent 7463ed3c9b
commit bca1f12e1e
4 changed files with 46 additions and 1 deletions
@@ -0,0 +1,21 @@
class Outer {
final static String C0 = "";
static class Inner {
final static String C1 = "";
}
@A(Nested.C0)
enum Enm {
@A(Nested.C0)
E0;
@A(Nested.C1)
void foo() {
}
}
}
@interface A {
String value();
}
@@ -0,0 +1,20 @@
class Outer {
static class Inner {
final static String C0 = "";
final static String C1 = "";
}
@A(Nested.C0)
enum Enm {
@A(Nested.C0)
E0;
@A(Nested.C1)
void foo() {
}
}
}
@interface A {
String value();
}
@@ -149,6 +149,10 @@ public class MoveMembersTest extends MultiFileTestCase {
doTest("A", "B", true, VisibilityUtil.ESCALATE_VISIBILITY, 0, 1);
}
public void testFromNestedToOuter() throws Exception {
doTest("Outer.Inner", "Outer", true, VisibilityUtil.ESCALATE_VISIBILITY, 0);
}
@Override
protected String getTestRoot() {
return "/refactoring/moveMembers/";