commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject cvs commit: jakarta-commons/lang/src/java/org/apache/commons/lang/mutable MutableFloat.java MutableObject.java
Date Fri, 08 Oct 2004 21:33:03 GMT
scolebourne    2004/10/08 14:33:03

  Modified:    lang/src/java/org/apache/commons/lang/mutable
                        MutableFloat.java MutableObject.java
  Log:
  Remove wrong Javadoc
  
  Revision  Changes    Path
  1.7       +1 -18     jakarta-commons/lang/src/java/org/apache/commons/lang/mutable/MutableFloat.java
  
  Index: MutableFloat.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/mutable/MutableFloat.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- MutableFloat.java	8 Oct 2004 19:45:46 -0000	1.6
  +++ MutableFloat.java	8 Oct 2004 21:33:03 -0000	1.7
  @@ -163,7 +163,6 @@
        * @param obj
        *            the object to be compared
        * @return <code>true</code> if the objects are the same; <code>false</code>
otherwise.
  -     * @throws ClassCastException if the argument is not a MutableFloat
        * @see java.lang.Float#floatToIntBits(float)
        */
       public boolean equals(Object obj) {
  @@ -172,22 +171,6 @@
       }
   
       //-----------------------------------------------------------------------
  -    /**
  -     * Checks if this object equals the specified object.
  -     * <p>
  -     * The object must be a MutableFloat with the same value to be equal.
  -     * 
  -     * @param obj
  -     *            the object to compare to
  -     * @return true if equal
  -     */
  -    //    public boolean equals(Object obj) {
  -    //        if (obj instanceof MutableFloat) {
  -    //            float other = ((MutableFloat) obj).value;
  -    //            return (Float.floatToIntBits(other) == Float.floatToIntBits(value));
  -    //        }
  -    //        return false;
  -    //    }
       /**
        * Returns a suitable hashcode for this mutable.
        * 
  
  
  
  1.4       +1 -2      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.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- MutableObject.java	8 Oct 2004 19:45:46 -0000	1.3
  +++ MutableObject.java	8 Oct 2004 21:33:03 -0000	1.4
  @@ -79,7 +79,6 @@
        * @param obj
        *            the object to compare with.
        * @return <code>true</code> if the objects are the same; <code>false</code>
otherwise.
  -     * @throws ClassCastException if the argument is not a MutableObject
        */
       public boolean equals(Object obj) {
           if (obj instanceof MutableObject) {
  
  
  

---------------------------------------------------------------------
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