This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-logging.git
The following commit(s) were added to refs/heads/master by this push: new 5995c6c Javadoc typos 5995c6c is described below commit 5995c6c6e7e23e1ccaadaa0cff433519207bd48d Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Fri May 19 08:52:13 2023 -0400 Javadoc typos --- src/main/java/org/apache/commons/logging/LogFactory.java | 4 ++-- .../java/org/apache/commons/logging/impl/WeakHashtable.java | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/org/apache/commons/logging/LogFactory.java b/src/main/java/org/apache/commons/logging/LogFactory.java index 82e31c2..791691f 100644 --- a/src/main/java/org/apache/commons/logging/LogFactory.java +++ b/src/main/java/org/apache/commons/logging/LogFactory.java @@ -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) { diff --git a/src/main/java/org/apache/commons/logging/impl/WeakHashtable.java b/src/main/java/org/apache/commons/logging/impl/WeakHashtable.java index a168581..cf66955 100644 --- a/src/main/java/org/apache/commons/logging/impl/WeakHashtable.java +++ b/src/main/java/org/apache/commons/logging/impl/WeakHashtable.java @@ -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