blob: ffbe15eee61b41a1ff89be8952b5e4cd4a7eec00 [file]
// "Extract common part with variables from 'if'" "true"
import java.util.Collection;
import java.util.List;
import java.util.Set;
public class IfStatementWithIdenticalBranches {
int getX(int x) {
return x;
}
int work() {
if<caret>(true) {
final int y = getX(12);
return y;
} else {
final int x = getX(33);
System.out.println(x);
return x;
}
}
}