< prev index next >

src/java.base/share/classes/java/lang/invoke/MethodType.java

Print this page
rev 58428 : [mq]: XXXXXXX-typos

@@ -1377,16 +1377,16 @@
                 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
+             * {@code WeakEntry} whose referent is equal to this referent, or
+             * if {@code obj} is equal 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
+             * @return true if {@code obj} is equal to this or the referent of this
              * @see MethodType#equals(Object)
              * @see Object#equals(Object)
              */
             @Override
             public boolean equals(Object obj) {
< prev index next >