< prev index next >
src/jdk.compiler/share/classes/com/sun/tools/javac/processing/JavacRoundEnvironment.java
Print this page
@@ -117,11 +117,11 @@
* @param a annotation type being requested
* @return the elements annotated with the given annotation type,
* or an empty set if there are none
*/
@DefinedBy(Api.ANNOTATION_PROCESSING)
- @SuppressWarnings("removal")
+ @SuppressWarnings("preview")
public Set<? extends Element> getElementsAnnotatedWith(TypeElement a) {
throwIfNotAnnotation(a);
Set<Element> result = Collections.emptySet();
ElementScanner14<Set<Element>, TypeElement> scanner =
@@ -132,11 +132,11 @@
return result;
}
@DefinedBy(Api.ANNOTATION_PROCESSING)
- @SuppressWarnings("removal")
+ @SuppressWarnings("preview")
public Set<? extends Element> getElementsAnnotatedWithAny(TypeElement... annotations) {
// Don't bother to special-case annotations.length == 1 as
// return getElementsAnnotatedWith(annotations[0]);
Set<TypeElement> annotationSet = new LinkedHashSet<>(annotations.length);
@@ -223,11 +223,11 @@
// Do not scan a package
return annotatedElements;
}
}
- @SuppressWarnings("removal")
+ @SuppressWarnings("preview")
private static abstract class ElementScanningIncludingTypeParameters<R, P>
extends ElementScanner14<R, P> {
protected ElementScanningIncludingTypeParameters(R defaultValue) {
super(defaultValue);
< prev index next >