I would prefer to write
@SuppressWarnings(PMD.ShortVariable) // with public static final String ShortVariable = "PMD.ShortVariable"; in class PMD.
instead of
@SuppressWarnings("PMD.ShortVariable")
But when using constants PMD ignores the annotation. Have I made a mistake or is there another reason?