From 24232ac64e3ba4f01390acad8ee44f87ffdb4efa Mon Sep 17 00:00:00 2001 From: nik Date: Wed, 12 Feb 2020 15:02:29 +0300 Subject: [PATCH] [groovy] add explicit @PropertyKey annotation in SuppressForMemberFix This is needed to show an error if an invalid key is passed to such variables, and also simplifies automatic code analysis when moving properties between bundles (needed for IDEA-209382). GitOrigin-RevId: cbcb53020e71cf412f94ce987fa50374fed9f6f0 --- .../plugins/groovy/codeInspection/SuppressForMemberFix.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/SuppressForMemberFix.java b/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/SuppressForMemberFix.java index f6fa044cb049..562b7cc68ef7 100644 --- a/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/SuppressForMemberFix.java +++ b/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/SuppressForMemberFix.java @@ -12,6 +12,7 @@ import com.intellij.psi.util.PsiTreeUtil; import com.intellij.util.IncorrectOperationException; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; +import org.jetbrains.annotations.PropertyKey; import org.jetbrains.plugins.groovy.lang.groovydoc.psi.api.GrDocComment; import org.jetbrains.plugins.groovy.lang.groovydoc.psi.api.GrDocCommentOwner; import org.jetbrains.plugins.groovy.lang.psi.GroovyPsiElementFactory; @@ -27,7 +28,7 @@ import org.jetbrains.plugins.groovy.lang.psi.api.types.GrTypeParameter; * @author peter */ public class SuppressForMemberFix extends AbstractBatchSuppressByNoInspectionCommentFix { - private String myKey; + private @PropertyKey(resourceBundle = "messages.InspectionsBundle") String myKey; private final boolean myForClass; public SuppressForMemberFix(String toolId, boolean forClass) {