mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
type migration: further fix root type conversion for varargs migration
This commit is contained in:
+3
@@ -119,6 +119,9 @@ public class RootTypeConversionRule extends TypeConversionRule {
|
||||
|
||||
final PsiType migrationType = methodTypeParamsSubstitutor.substitute(type);
|
||||
if (!originalType.equals(migrationType) && !areParametersAssignable(migrationType, i, actualParams)) {
|
||||
if (migrationType instanceof PsiEllipsisType && actualParams.length != migrationParams.length) {
|
||||
return null;
|
||||
}
|
||||
labeler.migrateExpressionType(actualParams[i], migrationType, context, false, true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user