Files
openide/java/java-tests/testData/refactoring/extractMethodNew/SuggestChangeSignatureLongConstExprFolding.java
Alexandr Suhinin 0e860160e5 [extract method] fork tests
GitOrigin-RevId: 3aae5c738d48c38144f6a78c36738121831ae5a5
2020-03-31 12:32:01 +00:00

18 lines
443 B
Java

class C {
public static final int A = 1, B = 2, C = 3, D = 4, E = 5;
void foo(int x) {
<selection>
if (x >= A + B + C + D + E + 1)
bar("A" + "B" + "C" + "D" + "E" + 1);
</selection>
if (x >= A + B + C + D + E + 2)
bar("A" + "B" + "C" + "D" + "E" + 2);
if (x <= A + B + C + D + E + 2)
bar("A" + "B" + "C" + "D" + "E" + 2);
}
void bar(String s) {}
}