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 MutableFloat.java MutableByte.java MutableShort.java MutableLong.java MutableInt.java
Date Fri, 01 Oct 2004 17:12:29 GMT
ggregory    2004/10/01 10:12:29

  Modified:    lang/src/java/org/apache/commons/lang/mutable
                        MutableFloat.java MutableByte.java
                        MutableShort.java MutableLong.java MutableInt.java
  Log:
  Remove unnecessary type casts.
  
  Revision  Changes    Path
  1.5       +2 -2      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.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- MutableFloat.java	7 Jul 2004 23:50:28 -0000	1.4
  +++ MutableFloat.java	1 Oct 2004 17:12:29 -0000	1.5
  @@ -106,7 +106,7 @@
       }
   
       public double doubleValue() {
  -        return (double) value;
  +        return value;
       }
   
       /**
  
  
  
  1.5       +7 -7      jakarta-commons/lang/src/java/org/apache/commons/lang/mutable/MutableByte.java
  
  Index: MutableByte.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/mutable/MutableByte.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- MutableByte.java	7 Jul 2004 23:50:28 -0000	1.4
  +++ MutableByte.java	1 Oct 2004 17:12:29 -0000	1.5
  @@ -96,19 +96,19 @@
       }
   
       public int intValue() {
  -        return (int) value;
  +        return value;
       }
   
       public long longValue() {
  -        return (long) value;
  +        return value;
       }
   
       public float floatValue() {
  -        return (float) value;
  +        return value;
       }
   
       public double doubleValue() {
  -        return (double) value;
  +        return value;
       }
   
       //-----------------------------------------------------------------------
  @@ -133,7 +133,7 @@
        * @return a suitable hashcode
        */
       public int hashCode() {
  -        return (int) value;
  +        return value;
       }
   
       /**
  @@ -154,7 +154,7 @@
        * @return the mutable value as a string
        */
       public String toString() {
  -        return String.valueOf((int) value);
  +        return String.valueOf(value);
       }
   
   }
  
  
  
  1.5       +7 -7      jakarta-commons/lang/src/java/org/apache/commons/lang/mutable/MutableShort.java
  
  Index: MutableShort.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/mutable/MutableShort.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- MutableShort.java	7 Jul 2004 23:50:28 -0000	1.4
  +++ MutableShort.java	1 Oct 2004 17:12:29 -0000	1.5
  @@ -96,19 +96,19 @@
       }
   
       public int intValue() {
  -        return (int) value;
  +        return value;
       }
   
       public long longValue() {
  -        return (long) value;
  +        return value;
       }
   
       public float floatValue() {
  -        return (float) value;
  +        return value;
       }
   
       public double doubleValue() {
  -        return (double) value;
  +        return value;
       }
   
       //-----------------------------------------------------------------------
  @@ -133,7 +133,7 @@
        * @return a suitable hashcode
        */
       public int hashCode() {
  -        return (int) value;
  +        return value;
       }
   
       /**
  @@ -154,7 +154,7 @@
        * @return the mutable value as a string
        */
       public String toString() {
  -        return String.valueOf((int) value);
  +        return String.valueOf(value);
       }
   
   }
  
  
  
  1.5       +3 -3      jakarta-commons/lang/src/java/org/apache/commons/lang/mutable/MutableLong.java
  
  Index: MutableLong.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/mutable/MutableLong.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- MutableLong.java	7 Jul 2004 23:50:28 -0000	1.4
  +++ MutableLong.java	1 Oct 2004 17:12:29 -0000	1.5
  @@ -100,11 +100,11 @@
       }
   
       public float floatValue() {
  -        return (float) value;
  +        return value;
       }
   
       public double doubleValue() {
  -        return (double) value;
  +        return value;
       }
   
       //-----------------------------------------------------------------------
  
  
  
  1.3       +4 -4      jakarta-commons/lang/src/java/org/apache/commons/lang/mutable/MutableInt.java
  
  Index: MutableInt.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/mutable/MutableInt.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- MutableInt.java	7 Jul 2004 23:50:28 -0000	1.2
  +++ MutableInt.java	1 Oct 2004 17:12:29 -0000	1.3
  @@ -96,15 +96,15 @@
       }
   
       public long longValue() {
  -        return (long) value;
  +        return value;
       }
   
       public float floatValue() {
  -        return (float) value;
  +        return value;
       }
   
       public double doubleValue() {
  -        return (double) value;
  +        return value;
       }
   
       //-----------------------------------------------------------------------
  
  
  

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