mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-23 00:42:21 +07:00
dd689d3a39
GitOrigin-RevId: 6b6405ee4491ad1d58947547c40df6fb2d291ab7
18 lines
350 B
Java
18 lines
350 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);
|
|
}
|
|
} |