You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ki...@apache.org on 2015/08/15 15:00:05 UTC
svn commit: r1696049 -
/poi/trunk/src/java/org/apache/poi/ss/formula/functions/Complex.java
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