--- old/src/java.compiler/share/classes/javax/lang/model/util/Elements.java 2020-02-18 20:16:13.036749999 -0800 +++ new/src/java.compiler/share/classes/javax/lang/model/util/Elements.java 2020-02-18 20:16:12.788873999 -0800 @@ -514,6 +514,9 @@ * Returns all annotations present on an element, whether * directly present or present via inheritance. * + *

Note that any annotations returned by this method are + * declaration annotations. + * * @param e the element being examined * @return all annotations of the element * @see Element#getAnnotationMirrors