Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/extractIfCondition/beforeRepeating.java
Tagir Valeev 83ebaa7f64 Extract common conjunct from if-else chain in ExtractIfConditionAction
Fixes IDEA-179499 New inspection: Should break out common conjunct from "if / else if"
2018-04-07 09:08:57 +03:00

10 lines
235 B
Java

// "Extract if (a)" "true"
class Test {
void f(boolean a, boolean b, boolean c){
if (<caret>a && b)
System.out.println("a&b");//first comment
else if (a && c/*2*/) {
System.out.println("a&c"); // three
}
}
}