public class RoundEnvironments extends Object
RoundEnvironment.| Modifier and Type | Method and Description |
|---|---|
static Set<? extends Element> |
annotatedElementsIn(RoundEnvironment roundEnv,
Class<? extends 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 Set<? extends Element> annotatedElementsIn(RoundEnvironment roundEnv, Class<? extends 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.
Copyright © 2015 inferred.org. All rights reserved.