CanonicalAnnotationSyntax
SUGGESTION
Simplification
Summary
Omit redundant syntax from annotation declarations
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("CanonicalAnnotationSyntax")
to the enclosing element.Disable this pattern completely by adding
-Xep:CanonicalAnnotationSyntax:OFF
as compiler argument. Learn more.