[java-inspections] Typo fixed createAllAll -> createAddAll

GitOrigin-RevId: 91e73ed6eadb6b5e3778154a6787b8007a66e69a
This commit is contained in:
Tagir Valeev
2021-03-23 12:23:34 +00:00
committed by intellij-monorepo-bot
parent 5be8a1eca3
commit e74cab5810
@@ -403,16 +403,16 @@ class CollectMigration extends BaseStreamApiMigration {
if (COLLECTIONS_ADD_ALL.test(call)) {
PsiExpression[] args = call.getArgumentList().getExpressions();
if (args.length < 2) return null;
return createAllAll(tb, call, args[0]);
return createAddAll(tb, call, args[0]);
}
if (COLLECTION_ADD_ALL.test(call)) {
return createAllAll(tb, call, call.getMethodExpression().getQualifierExpression());
return createAddAll(tb, call, call.getMethodExpression().getQualifierExpression());
}
return null;
}
private static @Nullable AddingAllTerminal createAllAll(TerminalBlock tb,
private static @Nullable AddingAllTerminal createAddAll(TerminalBlock tb,
PsiMethodCallExpression call,
PsiExpression targetExpr) {
PsiReferenceExpression collectionReference = tryCast(PsiUtil.skipParenthesizedExprDown(targetExpr), PsiReferenceExpression.class);