Files
openide/java/java-tests/testData/refactoring/extractMethodNew/DontExtractInsideSwitch.java
Alexandr Suhinin 6c4a19c95d extract method tests: should work only for single label inside switch
GitOrigin-RevId: 7621034db1c5434ab4c0e2c6bbfa18f298ec601f
2020-04-01 10:32:02 +00:00

14 lines
304 B
Java

class Test {
void test(int x) {
switch (x){
case 1:
<selection>System.out.println(1);
break;
case 2:
System.out.println();
return;</selection>
default:
break;
}
}
}