extract method: dont rely on polyadic expression in non physical expression test

GitOrigin-RevId: 44e5d0383d30e5cfbafe61d18d1d16ba5cbfd8b7
This commit is contained in:
Alexandr Suhinin
2020-07-07 08:16:42 +00:00
committed by intellij-monorepo-bot
parent a53c786a39
commit aa5d9bfbbc
2 changed files with 3 additions and 3 deletions
@@ -1,5 +1,5 @@
class Test {
void test(){
System.out.println(<selection>1 + 2</selection> + 3);
System.out.println(1 + <selection>2 + 3</selection>);
}
}
@@ -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;
}
}