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

10 lines
220 B
Java

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