[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
This commit is contained in:
nik
2020-02-12 12:42:14 +00:00
committed by intellij-monorepo-bot
parent 0d7c8f784e
commit 24232ac64e
@@ -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) {