Annotation Type SuppressWarnings
@Target({CONSTRUCTOR,FIELD,LOCAL_VARIABLE,METHOD,PACKAGE,PARAMETER,TYPE})
@Retention(CLASS)
public @interface SuppressWarnings
Suppress the warning reported by the code analyzing tool.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThe justification for the suppression.String[]
The names of the warnings to suppress.
-
Element Details
-
value
String[] valueThe names of the warnings to suppress.- Returns:
- list of warning to supress
- Default:
{}
-
justification
String justificationThe justification for the suppression. Should be a human readable description explaining why it is ok to suppress the message(s).- Returns:
- the justification for the suppression
- Since:
- 1.19
- Default:
""
-