commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r810884 - /commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/JexlArithmetic.java
Date Thu, 03 Sep 2009 10:46:17 GMT
Author: sebb
Date: Thu Sep  3 10:46:17 2009
New Revision: 810884

URL: http://svn.apache.org/viewvc?rev=810884&view=rev
Log:
Unnecessary casts

Modified:
    commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/JexlArithmetic.java

Modified: commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/JexlArithmetic.java
URL: http://svn.apache.org/viewvc/commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/JexlArithmetic.java?rev=810884&r1=810883&r2=810884&view=diff
==============================================================================
--- commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/JexlArithmetic.java
(original)
+++ commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/JexlArithmetic.java
Thu Sep  3 10:46:17 2009
@@ -158,7 +158,7 @@
             // coerce to int if possible
             long l = bigi.longValue();
             // coerce to int when possible (int being so often used in method parms)
-            if (l <= ((long) Integer.MAX_VALUE) && l >= ((long) Integer.MIN_VALUE))
{
+            if (l <= Integer.MAX_VALUE && l >= Integer.MIN_VALUE) {
                 return new Integer((int) l);
             }
             return new Long(l);



Mime
View raw message