mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
inplace rename: static context processing (IDEA-81427)
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
class X {
|
||||
public static final String s = "s";
|
||||
|
||||
public static void main(String... args) {
|
||||
String s<caret>1 = s;
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
class X {
|
||||
public static final String s = "s";
|
||||
|
||||
public static void main(String... args) {
|
||||
String s = X.s;
|
||||
}
|
||||
}
|
||||
@@ -91,6 +91,10 @@ public class RenameLocalTest extends LightRefactoringTestCase {
|
||||
doTestInplaceRename("r1");
|
||||
}
|
||||
|
||||
public void testRenameInPlaceInStaticContextWithConflictingField() throws Exception {
|
||||
doTestInplaceRename("s");
|
||||
}
|
||||
|
||||
private void doTestInplaceRename(final String newName) throws Exception {
|
||||
configureByFile(BASE_PATH + "/" + getTestName(false) + ".java");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user