mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-207296 Good code red: exception never thrown in the corresponding try block
This commit is contained in:
+18
@@ -10,4 +10,22 @@ class x {
|
||||
catch (<error descr="Exception 'java.io.IOException' is never thrown in the corresponding try block">IOException e</error>) {
|
||||
}
|
||||
}
|
||||
}
|
||||
//////////////////
|
||||
class A {
|
||||
private void a() {
|
||||
}
|
||||
}
|
||||
|
||||
class B extends A {
|
||||
void a() throws InterruptedException {
|
||||
}
|
||||
|
||||
void b() {
|
||||
try {
|
||||
a();
|
||||
} catch (InterruptedException e) {
|
||||
// IDEA-207296
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user