Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/createConstructorFromCall/afterDisjunction.java

22 lines
449 B
Java

// "Create Constructor" "true"
class Test {
void foo() throws Ex1 {}
void bar() throws Ex2 {}
public void t() {
try {
foo();
bar();
}
catch (Ex1 | Ex2 e) {
new A(e);
}
}
}
class A {
public A(Exception e) {
<selection>//To change body of created methods use File | Settings | File Templates.</selection>
}
}
class Ex1 extends Exception {}
class Ex2 extends Exception {}