support for disjunction types in create from usage intentions (IDEA-129453)

This commit is contained in:
Anna Kozlova
2014-09-04 15:07:12 +04:00
parent 46fafc29fc
commit f35847c962
4 changed files with 34 additions and 0 deletions
@@ -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) { }
}
@@ -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() { }
}