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

12 lines
248 B
Java

class Test {
void test(int x, float y){
<selection>int code;
if (x == 22) return;
if (x > 0) {
code = 1;
} else {
code = 42;
}</selection>
System.out.println(code);
}
}