mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
move members: no need to align according to nested classes (IDEA-106175)
This commit is contained in:
@@ -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/";
|
||||
|
||||
Reference in New Issue
Block a user