mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 03:21:12 +07:00
[java-i18n] Normalize both arguments when comparing in getParameter
Fixes retrieving parameter for arguments when the argument is a polyadic string literal. #KTIJ-27448 GitOrigin-RevId: 2b40bdb8a6e6f8609daf2b92f2c1ba0a8abb6288
This commit is contained in:
committed by
intellij-monorepo-bot
parent
4af9a8bb7c
commit
d2107596ae
@@ -345,6 +345,8 @@ public final class AnnotationContext {
|
||||
arg = normalize(arg);
|
||||
for (int i = 0; i < params.length; i++) {
|
||||
UExpression argument = call.getArgumentForParameter(i);
|
||||
if (argument == null) continue;
|
||||
argument = normalize(argument);
|
||||
if (arg.equals(argument) ||
|
||||
(argument instanceof UExpressionList &&
|
||||
((UExpressionList)argument).getKind() == UastSpecialExpressionKind.VARARGS &&
|
||||
|
||||
Reference in New Issue
Block a user