mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-19 10:20:56 +07:00
14 lines
344 B
Java
14 lines
344 B
Java
// "Unwrap 'else' branch (changes semantics)" "false"
|
|
|
|
class T {
|
|
void f(Object o, boolean b) {
|
|
synchronized (o) {
|
|
if (b)
|
|
System.out.println("When true");
|
|
<caret>else {
|
|
throw new RuntimeException("Otherwise");
|
|
}
|
|
}
|
|
System.out.println("Done");
|
|
}
|
|
} |