You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by jd...@apache.org on 2003/08/26 20:30:12 UTC

cvs commit: incubator-geronimo/modules/common/src/java/org/apache/geronimo/common/mutable MuByte.java

jdillon     2003/08/26 11:30:12

  Modified:    modules/common/src/java/org/apache/geronimo/common/mutable
                        MuByte.java
  Log:
   o Applied patch GERONIMO-24 (Bug in MuByte.compareTo(obj) method)
  Sivasundaram Umapathy
  
  Revision  Changes    Path
  1.2       +7 -9      incubator-geronimo/modules/common/src/java/org/apache/geronimo/common/mutable/MuByte.java
  
  Index: MuByte.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/common/src/java/org/apache/geronimo/common/mutable/MuByte.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- MuByte.java	24 Aug 2003 20:51:22 -0000	1.1
  +++ MuByte.java	26 Aug 2003 18:30:12 -0000	1.2
  @@ -56,8 +56,6 @@
   
   package org.apache.geronimo.common.mutable;
   
  -import org.apache.geronimo.common.coerce.NotCoercibleException;
  -
   /**
    * A mutable byte class.
    *
  @@ -302,15 +300,15 @@
       /**
        * Compares this object with the specified object for order.
        *
  -     * @param other   Value to compare with.
  -     * @return        A negative integer, zero, or a positive integer as
  -     *                this object is less than, equal to, or greater than
  -     *                the specified object.
  +     * @param obj   Value to compare with.
  +     * @return      A negative integer, zero, or a positive integer as
  +     *              this object is less than, equal to, or greater than
  +     *              the specified object.
        *
        * @throws ClassCastException    Object is not a MuByte.
        */
       public int compareTo(Object obj) throws ClassCastException {
  -        return compareTo((MuByte)obj);
  +        return compareTo(((MuByte)obj).get());
       }
       
       /**
  @@ -358,7 +356,7 @@
        * @return   <code>byte</code> value.
        */
       public byte byteValue() {
  -        return (byte)value;
  +        return value;
       }
   
       /**