mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-03 07:20:55 +07:00
14 lines
321 B
Java
14 lines
321 B
Java
// "Replace 'switch' with 'if'" "true-preview"
|
|
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
class Test {
|
|
|
|
void foo(@NotNull Object o) {
|
|
switch<caret> (o) {
|
|
case String s -> System.out.println("one");
|
|
case Integer i -> System.out.println("two");
|
|
default -> System.out.println("default");
|
|
}
|
|
}
|
|
} |