mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-26 20:50:54 +07:00
also fixes internationalization and the incorrect comma in the name for "Create missing switch branches" quick-fix GitOrigin-RevId: 16285e054447d8d15318df8889499bbbf91243a7
20 lines
388 B
Java
20 lines
388 B
Java
// "Create missing and 'null' branches" "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 -> {
|
|
}
|
|
}
|
|
}
|
|
} |