mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 08:06:56 +07:00
18 lines
313 B
Java
18 lines
313 B
Java
// "Extract common part from 'if' (may change semantics)" "INFORMATION"
|
|
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
public class Main {
|
|
void doOther(int i) {}
|
|
|
|
public void main(String[] args) {
|
|
int x = 5;
|
|
x++;
|
|
if(x > 5) {
|
|
doOther(1);
|
|
} else {
|
|
doOther(2);
|
|
}
|
|
}
|
|
} |