mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 18:28:55 +07:00
20 lines
401 B
Java
20 lines
401 B
Java
// "Create missing switch branches with null branch" "true-preview"
|
|
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
class Test {
|
|
public static void main(String[] args) {
|
|
test(true);
|
|
}
|
|
|
|
public void test(@Nullable Boolean b) {
|
|
switch (b) {
|
|
case true -> {
|
|
}
|
|
case false -> {
|
|
}
|
|
case null -> {
|
|
}
|
|
}
|
|
}
|
|
} |