blob: 3be68e20a3e5466c4f5546df758fe650ec93ef4f [file]
// "Extract variables from 'if'" "true"
import java.util.Collection;
import java.util.List;
import java.util.Set;
public class IfStatementWithIdenticalBranches {
int getX() {
return 42;
}
int work() {
if<caret>(true) {
int x = getX();
//Then
} else {
int x = getX();
return x;
}
}
}