mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 19:28:23 +07:00
12 lines
300 B
Java
12 lines
300 B
Java
// "Add 'IOException' to catch with 'IndexOutOfBoundsException'" "true"
|
|
import java.io.File;
|
|
import java.io.IOException;
|
|
|
|
class Test {
|
|
public static void main(String[] args) {
|
|
try {
|
|
new File("path").getCanonicalPath();
|
|
} catch (IndexOutOfBoundsException | IOException e) {
|
|
}
|
|
}
|
|
} |