mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
Fallthrough to default is not acceptable according to JEP 406. This patch eliminates the default cases from a special case rules and leaves only `case null` as the only special case rule. GitOrigin-RevId: 06c865f92fed01a41c5c87e1aa0a852acb3e7ee0
11 lines
211 B
Java
11 lines
211 B
Java
class Main {
|
|
private static final int i = 0;
|
|
private void f(Object o) {
|
|
switch (o) {
|
|
case Integer i :
|
|
System.out.println();
|
|
default:
|
|
System.out.println(i<caret>);
|
|
};
|
|
}
|
|
} |