1
0

Javadoc typos

This commit is contained in:
Gary Gregory
2023-05-19 08:52:13 -04:00
parent e684e574a6
commit 5995c6c6e7
2 changed files with 7 additions and 7 deletions

View File

@@ -1637,12 +1637,12 @@ public abstract class LogFactory {
* Returns a string that uniquely identifies the specified object, including
* its class.
* <p>
* The returned string is of form "classname@hashcode", ie is the same as
* The returned string is of form "classname@hashCode", ie is the same as
* the return value of the Object.toString() method, but works even when
* the specified object's class has overidden the toString method.
*
* @param o may be null.
* @return a string of form classname@hashcode, or "null" if param o is null.
* @return a string of form classname@hashCode, or "null" if param o is null.
* @since 1.1
*/
public static String objectId(final Object o) {

View File

@@ -408,7 +408,7 @@ public final class WeakHashtable extends Hashtable {
}
}
/** Wrapper giving correct symantics for equals and hashcode */
/** Wrapper giving correct symantics for equals and hash code */
private final static class Referenced {
private final WeakReference reference;
@@ -456,12 +456,12 @@ public final class WeakHashtable extends Hashtable {
if (thisKeyValue == null) {
result = otherKeyValue == null;
// Since our hashcode was calculated from the original
// Since our hash code was calculated from the original
// non-null referant, the above check breaks the
// hashcode/equals contract, as two cleared Referenced
// objects could test equal but have different hashcodes.
// hash code/equals contract, as two cleared Referenced
// objects could test equal but have different hash codes.
// We can reduce (not eliminate) the chance of this
// happening by comparing hashcodes.
// happening by comparing hash codes.
result = result && this.hashCode() == otherKey.hashCode();
// In any case, as our c'tor does not allow null referants
// and Hashtable does not do equality checks between