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/math NumberUtils.java
Date Sat, 26 Jul 2003 02:57:37 GMT
ggregory    2003/07/25 19:57:37

  Modified:    lang/src/java/org/apache/commons/lang/math NumberUtils.java
  Log:
  In 2 places, removed local var def before return of var, replaced with actual expression.

  This follows the other methods' code pattern.
  
  Revision  Changes    Path
  1.5       +3 -5      jakarta-commons/lang/src/java/org/apache/commons/lang/math/NumberUtils.java
  
  Index: NumberUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/math/NumberUtils.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- NumberUtils.java	20 Jul 2003 16:03:21 -0000	1.4
  +++ NumberUtils.java	26 Jul 2003 02:57:37 -0000	1.5
  @@ -458,8 +458,7 @@
           if (str == null) {
               return null;
           }
  -        BigInteger bi = new BigInteger(str);
  -        return bi;
  +        return new BigInteger(str);
       }
   
       /**
  @@ -475,8 +474,7 @@
           if (str == null) {
               return null;
           }
  -        BigDecimal bd = new BigDecimal(str);
  -        return bd;
  +        return new BigDecimal(str);
       }
   
       // Min in array
  
  
  

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