mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-48875 Intentions: "Convert parameter to map entry". Wrong warning window "Chosen name conflicts with parameter" is shown when trying to leave parameter's initial name
This commit is contained in:
@@ -39,6 +39,7 @@ public class GroovyValidationUtil {
|
||||
GrParametersOwner owner = PsiTreeUtil.getParentOfType(variable, GrParametersOwner.class);
|
||||
assert owner != null;
|
||||
for (GrParameter parameter : list.getParameters()) {
|
||||
if (parameter.equals(variable)) continue;
|
||||
validateVariableOccurrencesDownImpl(parameter, conflicts, varName);
|
||||
}
|
||||
validateVariableOccurrencesDown(owner, list, conflicts, varName);
|
||||
|
||||
Reference in New Issue
Block a user