mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
Merge branch 'master' into customDfaAssert
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
class MyException extends Exception {}
|
||||
|
||||
class Foo {
|
||||
public static void main(String[] args) {
|
||||
try {
|
||||
bar();
|
||||
} catch (Exception e) {
|
||||
if (e instanceof MyException) {
|
||||
return;
|
||||
}
|
||||
if (<warning descr="Condition 'e instanceof RuntimeException' is always 'true'">e instanceof RuntimeException</warning>) {
|
||||
return;
|
||||
}
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
private static void bar() throws MyException {
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user