Files
openide/java/java-tests/testData/inspection/duplicateBranchesInSwitchFix/afterMergeWithDefault1.java
2023-01-15 05:39:32 +00:00

11 lines
250 B
Java

// "Merge with the default 'switch' branch" "GENERIC_ERROR_OR_WARNING"
class Test {
void foo(String str) {
switch (str) {
case "hello":
case null, default:
System.out.println(42);
}
}
}