mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-31 19:38:50 +07:00
11 lines
244 B
Java
11 lines
244 B
Java
// "Replace with old style 'switch' statement" "true"
|
|
import java.util.*;
|
|
|
|
public class GenerateThrow {
|
|
void foo(int i) {
|
|
int res = <caret>switch (i) {
|
|
case 0 -> 1;
|
|
default -> throw new IllegalArgumentException();
|
|
};
|
|
}
|
|
} |