public class RoundEnvironments
extends java.lang.Object
RoundEnvironment.| Modifier and Type | Method and Description |
|---|---|
static java.util.Set<? extends javax.lang.model.element.Element> |
annotatedElementsIn(javax.annotation.processing.RoundEnvironment roundEnv,
java.lang.Class<? extends java.lang.annotation.Annotation> a)
Sanitizes the result of
RoundEnvironment.getElementsAnnotatedWith(javax.lang.model.element.TypeElement), which otherwise
can contain elements annotated with annotations of ERROR type. |
public static java.util.Set<? extends javax.lang.model.element.Element> annotatedElementsIn(javax.annotation.processing.RoundEnvironment roundEnv,
java.lang.Class<? extends java.lang.annotation.Annotation> a)
RoundEnvironment.getElementsAnnotatedWith(javax.lang.model.element.TypeElement), which otherwise
can contain elements annotated with annotations of ERROR type.
The canonical example is forgetting to import @Nullable.