mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
19 lines
331 B
Java
19 lines
331 B
Java
// "Extract common part removing branch" "true"
|
|
|
|
import java.util.Collection;
|
|
import java.util.List;
|
|
import java.util.Set;
|
|
|
|
public class IfStatementWithIdenticalBranches {
|
|
int getX() {
|
|
return 42;
|
|
}
|
|
|
|
int work() {
|
|
final int y = getX();
|
|
if (false) {
|
|
System.out.println(y);
|
|
}
|
|
return y;
|
|
}
|
|
} |