mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 08:50:57 +07:00
1. global and local inspections are merged to one 2. local inspection reports "non-final" methods (if cheap enough) IDEA-177230
19 lines
554 B
Java
19 lines
554 B
Java
import java.io.*;
|
|
|
|
class Test {
|
|
abstract class Target {
|
|
abstract void call(String f) throws FileNotFoundException, IOException;
|
|
abstract void call(String[] f) throws FileNotFoundException, IOException;
|
|
}
|
|
|
|
void use(Target target) throws <warning descr="Exception 'java.io.IOException' is never thrown in the method">IOException</warning> {
|
|
try {
|
|
target.call("");
|
|
} catch (FileNotFoundException e) {
|
|
System.out.println("file not found");
|
|
} catch (IOException e) {
|
|
System.out.println("failed: " + e);
|
|
}
|
|
}
|
|
}
|