mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-31 19:50:55 +07:00
16 lines
286 B
Java
16 lines
286 B
Java
// "Replace 'switch' with 'if'" "true-preview"
|
|
class Foo {
|
|
Object foo(int x) {
|
|
sw<caret>itch (x) {
|
|
case 1: // not needed
|
|
return null;
|
|
case 2:// not needed
|
|
return null;
|
|
case 4:
|
|
return "foo";
|
|
default:
|
|
return null;
|
|
}
|
|
}
|
|
}
|