mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
16 lines
253 B
Java
16 lines
253 B
Java
// "Collapse 'if' statement" "true"
|
|
|
|
import java.util.Collection;
|
|
import java.util.List;
|
|
import java.util.Set;
|
|
|
|
public class IfStatementWithIdenticalBranches {
|
|
int getX() {
|
|
return 42;
|
|
}
|
|
|
|
int work() {
|
|
int y = getX();
|
|
return y;
|
|
}
|
|
} |