Javadoc typos
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 @@
* 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 @@
}
}
- /** 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 @@
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