mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
19 lines
302 B
Java
19 lines
302 B
Java
// "Merge 'else if' statement" "true"
|
|
|
|
import java.util.Collection;
|
|
import java.util.List;
|
|
import java.util.Set;
|
|
|
|
public class IfStatementWithIdenticalBranches {
|
|
int getX() {
|
|
return 42;
|
|
}
|
|
|
|
void work() {
|
|
if (true || false) {
|
|
int x = getX();
|
|
} else {
|
|
int y = 12;
|
|
}
|
|
}
|
|
} |