Files
openide/java/java-tests/testData/refactoring/extractMethodAndDuplicatesInplace/SignatureChangeIsAvoided1.java
Alexandr Suhinin 73f35ed28c IDEA-274123 [extract method]: don't suggest too abstract change signatures
GitOrigin-RevId: 4c59710e2304288ad4465a92ec36bff633bd661e
2022-11-10 01:05:51 +00:00

23 lines
471 B
Java

public class Test {
void test() {
if (<selection>getSize1() < getLimit1() && getCondition1()</selection>) {
System.out.println();
}
if (getSize2() < getLimit2() && getCondition1()) {
System.out.println();
}
}
int getSize1() {
return 42;
}
int getSize2() { return 42; }
int getLimit1() { return 42; }
int getLimit2() { return 42; }
boolean getCondition1 { return true; }
}