mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[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:
committed by
intellij-monorepo-bot
parent
0d7c8f784e
commit
24232ac64e
+2
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user