< prev index next >
src/java.base/share/classes/java/lang/invoke/MethodType.java
Print this page
rev 58266 : imported patch XXXXXXX-typos
*** 1377,1392 ****
hashcode = key.hashCode();
}
/**
* This implementation returns {@code true} if {@code obj} is another
! * {@code WeakEntry} whose referent is equals to this referent, or
! * if {@code obj} is equals to the referent of this. This allows
* lookups to be made without wrapping in a {@code WeakEntry}.
*
* @param obj the object to compare
! * @return true if {@code obj} is equals to this or the referent of this
* @see MethodType#equals(Object)
* @see Object#equals(Object)
*/
@Override
public boolean equals(Object obj) {
--- 1377,1392 ----
hashcode = key.hashCode();
}
/**
* This implementation returns {@code true} if {@code obj} is another
! * {@code WeakEntry} whose referent equals to this referent, or
! * if {@code obj} equals to the referent of this. This allows
* lookups to be made without wrapping in a {@code WeakEntry}.
*
* @param obj the object to compare
! * @return true if {@code obj} equals to this or the referent of this
* @see MethodType#equals(Object)
* @see Object#equals(Object)
*/
@Override
public boolean equals(Object obj) {
< prev index next >