mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
extract method: dont rely on polyadic expression in non physical expression test
GitOrigin-RevId: 44e5d0383d30e5cfbafe61d18d1d16ba5cbfd8b7
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a53c786a39
commit
aa5d9bfbbc
@@ -1,5 +1,5 @@
|
||||
class Test {
|
||||
void test(){
|
||||
System.out.println(<selection>1 + 2</selection> + 3);
|
||||
System.out.println(1 + <selection>2 + 3</selection>);
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -1,9 +1,9 @@
|
||||
class Test {
|
||||
void test(){
|
||||
System.out.println(newMethod() + 3);
|
||||
System.out.println(1 + newMethod());
|
||||
}
|
||||
|
||||
private int newMethod() {
|
||||
return 1 + 2;
|
||||
return 2 + 3;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user