mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-30 23:51:37 +07:00
IDEA-292909 GitOrigin-RevId: b8da95df3641add9c696b864ac624237f43a29e2
11 lines
294 B
Java
11 lines
294 B
Java
// "Replace with old style 'switch' statement" "true"
|
|
import java.util.*;
|
|
|
|
public class GenerateThrow {
|
|
void foo(int i) {
|
|
int res = <caret>switch (i) { // convert to 'old style' switch
|
|
case 0 -> 1;
|
|
default/*1*/ ->/*2*/ throw /*3*/new IllegalArgumentException();
|
|
};
|
|
}
|
|
} |