RequiredModifiers
This annotation is missing required modifiers as specified by its @RequiredModifiers annotation

Category
JDK
Severity
WARNING
Maturity

The problem

This annotation is itself annotated with @RequiredModifiers and can only be used when the specified modifiers are present. You are attempting touse it on an element that is missing one or more required modifiers.

Suppression

Suppress false positives by adding an @SuppressWarnings("RequiredModifiers") annotation to the enclosing element.