@AnnotatedFor({"nullness", "regex"}) indicates that the class has been annotated with
annotations such as @Nullable and @Regex. The argument to AnnotatedFor is
not an annotation name, but a checker name.
You should only use this annotation in a partially-annotated library. There is no point to using it in a fully-annotated library nor in an application that does not export APIs for clients.
This annotation has no effect unless the -AuseConservativeDefaultsForUncheckedCode=source command-line argument is supplied. Ordinarily,
the -AuseConservativeDefaultsForUncheckedCode=source command-line argument causes
unannotated locations to be defaulted using conservative defaults, and it suppresses all
warnings. However, a class with a relevant @AnnotatedFor annotation is always defaulted
normally (typically using the CLIMB-to-top rule), and typechecking warnings are issued.
| Modifier and Type | Method and Description |
|---|---|
| public String[] | Returns: the type systems for which the class has been annotatedReturns the type systems for which the class has been annotated. |
| value | back to summary |
|---|---|
| public String[] value() Returns the type systems for which the class has been annotated. Legal arguments are any string
that may be passed to the
| |