mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-17 11:40:50 +07:00
26 lines
450 B
Java
26 lines
450 B
Java
class BrokenAlignment {
|
|
|
|
public static void main(String[] args) {
|
|
|
|
Throwable error = null;
|
|
try {
|
|
doSomething();
|
|
} catch (AssertionError e) {
|
|
// rethrow error
|
|
throw e;
|
|
} catch (Throwable e) {
|
|
// remember error
|
|
error = e;
|
|
}
|
|
|
|
if (error != null) { // <<--- inspection warning
|
|
// handle error ...
|
|
}
|
|
|
|
}
|
|
|
|
public static void doSomething() {
|
|
throw new RuntimeException("dummy");
|
|
}
|
|
|
|
} |