Files
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

11 lines
225 B
Java

// "Unwrap 'else' branch" "false"
class T {
void f(boolean b) {
if (b)
throw new RuntimeException("When true");
<caret>else {
System.out.println("Otherwise");
}//c1
}
}