Files
openide/java/java-tests/testData/codeInsight/unwrapElseBranch/beforeChainedIf2.java
Andrey.Cherkasov d01484e002 IDEA-220039: Disable the "Unwrap 'else' branch" intention action if the 'else' is not redundant
GitOrigin-RevId: 9ff561b38bce316cbcbd1e24c738b77cf6495460
2020-12-21 10:51:36 +00:00

13 lines
278 B
Java

// "Unwrap 'else' branch" "false"
class T {
String f(boolean a, boolean b) {
if (a)
if (b) {
return "When true";
} <caret>else {
System.out.println("Otherwise");
}
return "Default";
}
}