mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 07:40:42 +07:00
add exception to existing catch: ensure qNames are adjusted
This commit is contained in:
+2
-1
@@ -1,10 +1,11 @@
|
||||
// "Add exception to existing catch clause" "true"
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
class Test {
|
||||
public static void main(String[] args) {
|
||||
try {
|
||||
throw new IOException();
|
||||
new File("path").getCanonicalPath();
|
||||
} catch (IndexOutOfBoundsException | IOException e) {
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,10 +1,10 @@
|
||||
// "Add exception to existing catch clause" "true"
|
||||
import java.io.IOException;
|
||||
import java.io.File;
|
||||
|
||||
class Test {
|
||||
public static void main(String[] args) {
|
||||
try {
|
||||
throw new IOException<caret>();
|
||||
new File("path").getCanonical<caret>Path();
|
||||
} catch (IndexOutOfBoundsException e) {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user