mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 08:06:56 +07:00
20 lines
313 B
Java
20 lines
313 B
Java
// "Extract common part with variables from 'if'" "true"
|
|
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
public class Main {
|
|
|
|
void work(int i){};
|
|
|
|
public int test(int a, int b) {
|
|
int c;
|
|
if(true) {
|
|
c = a + b;
|
|
} else {
|
|
c = a - b;
|
|
}
|
|
work(1);
|
|
return c;
|
|
}
|
|
} |