commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject cvs commit: jakarta-commons/lang/src/java/org/apache/commons/lang/mutable MutableObject.java
Date Fri, 08 Oct 2004 22:29:33 GMT
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


Mime
View raw message