Files
openide/java/java-tests/testData/inspection/switchExpressionBackwardMigration/beforeSwitchStatements3.java
T

13 lines
225 B
Java

// "Replace with old style 'switch' statement" "true"
import java.util.*;
class X {
boolean x(int i) {
boolean b;
switch<caret> (i) {
case 2 -> throw null;
default -> b = true;
}
return b;
}
}