You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by gg...@apache.org on 2004/10/09 00:29:33 UTC
cvs commit: jakarta-commons/lang/src/java/org/apache/commons/lang/mutable MutableObject.java
ggregory 2004/10/08 15:29:33
Modified: lang/src/java/org/apache/commons/lang/mutable
MutableObject.java
Log:
Javadoc hashCode() more precisely.
Revision Changes Path
1.5 +4 -4 jakarta-commons/lang/src/java/org/apache/commons/lang/mutable/MutableObject.java
Index: MutableObject.java
===================================================================
RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/mutable/MutableObject.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- MutableObject.java 8 Oct 2004 21:33:03 -0000 1.4
+++ MutableObject.java 8 Oct 2004 22:29:33 -0000 1.5
@@ -33,7 +33,7 @@
private Object value;
/**
- * Constructs a new MutableObject with the default value of null.
+ * Constructs a new MutableObject with the default value of <code>null</code>.
*/
public MutableObject() {
super();
@@ -89,9 +89,9 @@
}
/**
- * Returns a suitable hashcode for this mutable.
+ * Returns the value's hash code or <code>0</code> if the value is <code>null</code>.
*
- * @return a suitable hashcode
+ * @return the value's hash code or <code>0</code> if the value is <code>null</code>.
*/
public int hashCode() {
return (value == null ? 0 : value.hashCode());
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org