mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[extract method] IDEA-306846 CR-100378: test qualified field usage
GitOrigin-RevId: 357b69f3e94cb1d2cda2bead8d749b1de7df6a4d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
e60923ac0b
commit
bf8d0d520b
+8
@@ -0,0 +1,8 @@
|
||||
public class Test {
|
||||
|
||||
int x;
|
||||
|
||||
public void run() {
|
||||
<selection>System.out.println(this.x);</selection>
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
public class Test {
|
||||
|
||||
int x;
|
||||
|
||||
public void run() {
|
||||
extracted(this.x);
|
||||
}
|
||||
|
||||
private static void extracted(int x) {
|
||||
System.out.println(x);
|
||||
}
|
||||
}
|
||||
+5
@@ -244,6 +244,11 @@ class ExtractMethodAndDuplicatesInplaceTest: LightJavaCodeInsightTestCase() {
|
||||
}
|
||||
}
|
||||
|
||||
fun testMakeStaticWithQualifiedThis(){
|
||||
JavaRefactoringSettings.getInstance().EXTRACT_STATIC_METHOD_AND_PASS_FIELDS = true
|
||||
doTest()
|
||||
}
|
||||
|
||||
fun testMakeStaticWithStaticMembers(){
|
||||
runAndRevertSettings {
|
||||
JavaRefactoringSettings.getInstance().EXTRACT_STATIC_METHOD_AND_PASS_FIELDS = true
|
||||
|
||||
Reference in New Issue
Block a user