mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
WrapWithAdapterMethodCallFix: correctly handle disjunction type
Fixes EA-116570 Cannot create expression for type class com.intellij.psi.PsiDisjunctionType
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
// "Wrap using 'Collections.singletonList()'" "true"
|
||||
import java.util.*;
|
||||
|
||||
class Test {
|
||||
List<Throwable> test() {
|
||||
try {
|
||||
System.out.println();
|
||||
}
|
||||
catch (Exception | Error ex) {
|
||||
return Collections.singletonList(ex);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
// "Wrap using 'Collections.singletonList()'" "true"
|
||||
import java.util.*;
|
||||
|
||||
class Test {
|
||||
List<Throwable> test() {
|
||||
try {
|
||||
System.out.println();
|
||||
}
|
||||
catch (Exception | Error ex) {
|
||||
return e<caret>x;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user