Files
openide/java/java-tests/testData/refactoring/extractMethodNew/ExtractSwitchNotNullVariable.java
Alexandr Suhinin 2f9a173e88 test: add test data for newly supported cases
GitOrigin-RevId: 01bda01714863b5c174c85350542cb1c49440e42
2020-04-01 09:31:41 +00:00

16 lines
355 B
Java

class Test {
void test(int y){
<selection>String x;
switch (y){
case 3:
x = "1";
break;
case 5:
x = "2";
break;
default:
throw new IllegalArgumentException();
}</selection>
System.out.println(x);
}
}