mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
move members: escalate visibility fix in case of overloaded methods (IDEA-81323)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
public interface A {
|
||||
void bar() {
|
||||
B.foo("");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
public class B {
|
||||
static void foo(String s) {}
|
||||
|
||||
void foo(int x) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
public interface A {
|
||||
private static void foo(String s) {}
|
||||
void bar() {
|
||||
foo("");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
public class B {
|
||||
void foo(int x) {
|
||||
}
|
||||
}
|
||||
@@ -114,6 +114,10 @@ public class MoveMembersTest extends MultiFileTestCase {
|
||||
public void testInnerToInterface() throws Exception {
|
||||
doTest("A", "B", 0);
|
||||
}
|
||||
|
||||
public void testEscalateVisibility1() throws Exception {
|
||||
doTest("A", "B", true, VisibilityUtil.ESCALATE_VISIBILITY, 0);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getTestRoot() {
|
||||
|
||||
Reference in New Issue
Block a user