mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 13:02:30 +07:00
[java-intentions] Test for IDEA-367517
GitOrigin-RevId: 629874907d950626a912c2fbd6c8bb9b50b93902
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ce3727e1b5
commit
b58f63db9e
@@ -0,0 +1,28 @@
|
||||
// "Add exception to method signature" "false"
|
||||
import java.util.concurrent.ExecutionException;
|
||||
import java.util.concurrent.TimeoutException;
|
||||
|
||||
class Freeze implements Runnable {
|
||||
|
||||
private boolean flag;
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
try (SomeClient client = new SomeClient()) {
|
||||
if (flag) {
|
||||
client.<caret>run1();
|
||||
} else {
|
||||
client.run2();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
class SomeClient implements AutoCloseable {
|
||||
|
||||
public void run1() throws InterruptedException, ExecutionException, TimeoutException {}
|
||||
|
||||
public void run2() throws InterruptedException, ExecutionException, TimeoutException {}
|
||||
|
||||
@Override
|
||||
public void close() {}
|
||||
}
|
||||
Reference in New Issue
Block a user