mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
support for disjunction types in create from usage intentions (IDEA-129453)
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
// "Add 'Exception' as 1st parameter to method 'f'" "true"
|
||||
import java.io.FileInputStream;
|
||||
import java.io.IOException;
|
||||
|
||||
class Test {
|
||||
public void createFileInputStream() {
|
||||
try {
|
||||
new FileInputStream("test");
|
||||
} catch (IOException |NullPointerException e) {
|
||||
f(e);
|
||||
}
|
||||
}
|
||||
|
||||
public void f(Exception e) { }
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// "Add 'Exception' as 1st parameter to method 'f'" "true"
|
||||
import java.io.FileInputStream;
|
||||
import java.io.IOException;
|
||||
|
||||
class Test {
|
||||
public void createFileInputStream() {
|
||||
try {
|
||||
new FileInputStream("test");
|
||||
} catch (IOException |NullPointerException e) {
|
||||
f(<caret>e);
|
||||
}
|
||||
}
|
||||
|
||||
public void f() { }
|
||||
}
|
||||
Reference in New Issue
Block a user