mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
minor
This commit is contained in:
+2
-2
@@ -664,7 +664,7 @@ public class CreateFromUsageUtils {
|
||||
expectedTypes = union.toArray(new ExpectedTypeInfo[union.size()]);
|
||||
}
|
||||
|
||||
if (expectedTypes == null || expectedTypes.length == 0) {
|
||||
if (expectedTypes.length == 0) {
|
||||
PsiType t = allowVoidType ? PsiType.VOID : PsiType.getJavaLangObject(manager, resolveScope);
|
||||
expectedTypes = new ExpectedTypeInfo[] {ExpectedTypesProvider.createInfo(t, ExpectedTypeInfo.TYPE_OR_SUBTYPE, t, TailType.NONE)};
|
||||
}
|
||||
@@ -716,7 +716,7 @@ public class CreateFromUsageUtils {
|
||||
expectedTypes = union.toArray(new ExpectedTypeInfo[union.size()]);
|
||||
}
|
||||
|
||||
if (expectedTypes == null || expectedTypes.length == 0) {
|
||||
if (expectedTypes.length == 0) {
|
||||
return allowVoidType ? new PsiType[]{PsiType.VOID} : new PsiType[]{PsiType.getJavaLangObject(manager, resolveScope)};
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user