Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/createMissingBooleanPrimitiveBranches/afterAllBoxedBooleans.java
Mikhail Pyltsin 0b30038602 [java-highlighting] IDEA-356470 Support jep 455. Generate true and false cases for boolean selector
GitOrigin-RevId: fbd879f172639f3db1b0d9c12f98fcb3868fa1a9
2024-07-18 20:11:33 +00:00

17 lines
299 B
Java

// "Create missing branches: 'false', and 'true'" "true-preview"
import java.util.List;
class Test {
public static void main(String[] args) {
test(true);
}
public static void test(Boolean b) {
switch (b){
case true -> {
}
case false -> {
}
}
}
}