Package java.lang
Annotation Type SuppressWarnings
-
@Target({TYPE,FIELD,METHOD,PARAMETER,CONSTRUCTOR,LOCAL_VARIABLE}) @Retention(SOURCE) public @interface SuppressWarnings
Annotation type used to indicate that the compiler should not issue the specified warnings for the marked program element. Warnings are not only suppressed for the annotated element but also for all program elements contained in that element.It is recommended that programmers always use this annotation on the most deeply nested element where it is actually needed.
- Since:
- 1.5
-
-
Element Detail
-
value
String[] value
The list of warnings a compiler should not issue.
-
-