mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java-inspections] Typo fixed createAllAll -> createAddAll
GitOrigin-RevId: 91e73ed6eadb6b5e3778154a6787b8007a66e69a
This commit is contained in:
committed by
intellij-monorepo-bot
parent
5be8a1eca3
commit
e74cab5810
+3
-3
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user