mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 08:09:39 +07:00
13 lines
293 B
Java
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);
|
|
}
|
|
}
|
|
}
|