Files
openide/java/java-tests/testData/inspection/duplicateBranchesInSwitchFix/afterDeleteRedundantBranch2.java
Andrey Cherkasov e008c6522f [java-inspections] DuplicateBranchesInSwitch: adapt the inspection to Java 20
IDEA-310260

GitOrigin-RevId: ce07977550e3a5c15d63f0a6eeed1d7341c74164
2023-01-15 05:39:32 +00:00

13 lines
293 B
Java

// "Delete redundant 'switch' branch" "GENERIC_ERROR_OR_WARNING"
class Test {
void foo(String str) {
switch (str) {
case null:
System.out.println(42);
break;
default:
System.out.println(42);
}
}
}