poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kiwiwi...@apache.org
Subject svn commit: r1696049 - /poi/trunk/src/java/org/apache/poi/ss/formula/functions/Complex.java
Date Sat, 15 Aug 2015 13:00:05 GMT
Author: kiwiwings
Date: Sat Aug 15 13:00:05 2015
New Revision: 1696049

URL: http://svn.apache.org/r1696049
Log:
FindBugs - BX_BOXING_IMMEDIATELY_UNBOXED_TO_PERFORM_COERCION

Modified:
    poi/trunk/src/java/org/apache/poi/ss/formula/functions/Complex.java

Modified: poi/trunk/src/java/org/apache/poi/ss/formula/functions/Complex.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/ss/formula/functions/Complex.java?rev=1696049&r1=1696048&r2=1696049&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/ss/formula/functions/Complex.java (original)
+++ poi/trunk/src/java/org/apache/poi/ss/formula/functions/Complex.java Sat Aug 15 13:00:05
2015
@@ -118,7 +118,7 @@ public class Complex extends Var2or3ArgF
 
             if (realINum != 1 && realINum != -1) {
                 if (isDoubleAnInt(realINum)) {
-                    strb.append(new Double(realINum).intValue());
+                    strb.append((int)realINum);
                 } else {
                     strb.append(realINum);
                 }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message