mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-07-14 01:26:26 +07:00
AddExceptionToExistingCatchFix: hide fix in catch or finally IDEA-189654
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
// "Add exception to existing catch clause" "false"
|
||||
import java.io.File;
|
||||
|
||||
class MyException extends Exception {}
|
||||
|
||||
class Test {
|
||||
public static void main(String[] args) {
|
||||
try {
|
||||
} catch (RuntimeException e) {
|
||||
throw new MyException<caret>();
|
||||
}
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// "Add exception to existing catch clause" "false"
|
||||
import java.io.File;
|
||||
|
||||
class MyException extends Exception {}
|
||||
|
||||
class Test {
|
||||
public static void main(String[] args) {
|
||||
try {
|
||||
} catch (RuntimeException e) {
|
||||
} finally // comment
|
||||
{
|
||||
throw new MyException<caret>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user