mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
21 lines
339 B
Java
21 lines
339 B
Java
// "Extract common part with variables from 'if'" "true"
|
|
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
public class Main {
|
|
|
|
private void work(int i){};
|
|
|
|
public void test(int a, int b) {
|
|
int c;
|
|
if(true) {
|
|
c = a + b;
|
|
work(33);
|
|
} else {
|
|
c = a - b;
|
|
work(12);
|
|
}
|
|
return c;
|
|
}
|
|
} |