--- old/src/java.compiler/share/classes/javax/lang/model/element/AnnotationMirror.java 2019-06-05 17:17:41.373033273 -0700 +++ new/src/java.compiler/share/classes/javax/lang/model/element/AnnotationMirror.java 2019-06-05 17:17:41.005033273 -0700 @@ -71,4 +71,25 @@ * or an empty map if there are none */ Map getElementValues(); + + /** + * Returns {@code true} if the other object is also an {@code + * AnnotationMirror} and its {@linkplain getAnnotationType + * annotation type} and {@linkplain getElementValues element + * values} are equal to this {@code AnnotationMirror}. + * + * @return {@code true} if the argument is an equal {@code + * AnnotationMirror}; {@code false} otherwise. + */ + @Override + boolean equals(Object o); + + /** + * Returns the XOR of the hash codes of this {@code + * AnnotationMirror}'s {@linkplain getAnnotationType annotation + * type} and {@linkplain getElementValues element values}. + * @return the XOR of the annotation type and element values + */ + @Override + int hashCode(); }