SuppressWarnings.Value Method

Definition

The set of warnings that are to be suppressed by the compiler in the annotated element.

[Android.Runtime.Register("value", "()[Ljava/lang/String;", "GetValueHandler")]
public abstract string[]? Value ();
[<Android.Runtime.Register("value", "()[Ljava/lang/String;", "GetValueHandler")>]
abstract member Value : unit -> string[]

Returns

String[]

the set of warnings to be suppressed

Attributes

Remarks

The set of warnings that are to be suppressed by the compiler in the annotated element. Duplicate names are permitted. The second and successive occurrences of a name are ignored. The presence of unrecognized warning names is not an error: Compilers must ignore any warning names they do not recognize. They are, however, free to emit a warning if an annotation contains an unrecognized warning name.

The string "unchecked" is used to suppress unchecked warnings. Compiler vendors should document the additional warning names they support in conjunction with this annotation type. They are encouraged to cooperate to ensure that the same names work across multiple compilers.

Java documentation for java.lang.SuppressWarnings.value().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to