mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-CR-2144: extract method: test expression inside field group
GitOrigin-RevId: bea8f280aa73964b94f4bd66d4e542393f2a6ea7
This commit is contained in:
committed by
intellij-monorepo-bot
parent
8d62fcfecb
commit
2110bac037
@@ -0,0 +1,3 @@
|
||||
public class Test {
|
||||
int a = 1 + 1, b = <selection>2 * 2</selection>, c = 3 - 3;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
public class Test {
|
||||
int a = 1 + 1, b = newMethod(), c = 3 - 3;
|
||||
|
||||
private int newMethod() {
|
||||
return 2 * 2;
|
||||
}
|
||||
}
|
||||
@@ -217,6 +217,10 @@ public class ExtractMethodNewTest extends LightJavaCodeInsightTestCase {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testFieldGroupAnchor2() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testSCR27887() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user