mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 08:06:56 +07:00
17 lines
355 B
Java
17 lines
355 B
Java
// "Extract common part with variables from 'if'" "true"
|
|
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
public class Main {
|
|
public static void main(String... args) {
|
|
int i = 1;
|
|
String[] array;
|
|
if (i % 2 == 0) {
|
|
array = new String[]{};
|
|
} else {
|
|
array = new String[]{"not empty"};
|
|
}
|
|
main(array);
|
|
}
|
|
} |