mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-03 20:33:31 +07:00
GitOrigin-RevId: 72f8e7f6c9080db7cb0b89c0ed876eb949171e8f
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");
|
|
}
|
|
}
|
|
} |