mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-01 05:18:06 +07:00
15 lines
304 B
Java
15 lines
304 B
Java
// "Replace with old style 'switch' statement" "true"
|
|
import java.util.*;
|
|
|
|
public class GenerateThrow {
|
|
void foo(int i) {
|
|
int res;
|
|
switch (i) {
|
|
case 0:
|
|
res = 1;
|
|
break;
|
|
default:
|
|
throw new IllegalArgumentException();
|
|
}
|
|
}
|
|
} |