mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-22 06:20:54 +07:00
16 lines
348 B
Java
16 lines
348 B
Java
// "Remove unreachable branches" "true-preview"
|
|
import java.util.concurrent.ThreadLocalRandom;
|
|
class Test {
|
|
void test(Number n) {
|
|
n = 1;
|
|
Integer i = (Integer) n;
|
|
int rand = ThreadLocalRandom.current().nextInt();
|
|
if (rand > 10) {
|
|
i = 2;
|
|
}
|
|
else {
|
|
i = 3;
|
|
}
|
|
System.out.println(i);
|
|
}
|
|
} |