mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
AddExceptionToExistingCatch: disable fix for local classes: IDEA-189828
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
// "Add exception to existing catch clause" "true"
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileNotFoundException;
|
||||
|
||||
class Test {
|
||||
void m() {
|
||||
try {
|
||||
new Runnable() {
|
||||
@Override
|
||||
public void run() { }
|
||||
|
||||
InputStream in = new FileInputStream("");
|
||||
};
|
||||
} catch (RuntimeException | FileNotFoundException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
// "Add exception to existing catch clause" "true"
|
||||
import java.io.FileInputStream;
|
||||
|
||||
class Test {
|
||||
void m() {
|
||||
try {
|
||||
new Runnable() {
|
||||
@Override
|
||||
public void run() { }
|
||||
|
||||
InputStream in = new <caret>FileInputStream("");
|
||||
};
|
||||
} catch (RuntimeException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
// "Add exception to existing catch clause" "false"
|
||||
import java.io.FileInputStream;
|
||||
|
||||
class Test {
|
||||
void m() {
|
||||
try {
|
||||
class A implements Runnable {
|
||||
@Override
|
||||
public void run() { }
|
||||
|
||||
InputStream in = new <caret>FileInputStream("");
|
||||
};
|
||||
} catch (RuntimeException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user