Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/unwrapIfStatement/beforeInsideSwitch2.java
Tagir Valeev 142b1e7fd9 Fix unwrap 'if' when it's immediately followed by label
GitOrigin-RevId: 8dd9e0c5ba33fb2452e66126e51845ee1999af36
2020-07-07 08:18:42 +00:00

17 lines
378 B
Java

// "Unwrap 'if' statement" "true"
class X {
public String testUnwrap(String f) {
switch (f) {
case "A":
return "A";
case "B":
if (t<caret>rue) {
return "b";
}
case "D":
return "D";
default:
return null;
}
}
}