mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
18 lines
396 B
Java
18 lines
396 B
Java
import java.util.concurrent.ThreadLocalRandom;
|
|
|
|
public class A {
|
|
void f() {
|
|
String s = "";
|
|
try {
|
|
s = "a";
|
|
<selection>if (r()) throw new RuntimeException();
|
|
s = "b";</selection>
|
|
} finally {
|
|
System.out.println(s);
|
|
}
|
|
}
|
|
|
|
private boolean r() {
|
|
return ThreadLocalRandom.current().nextBoolean();
|
|
}
|
|
} |