FindBugs - BX_BOXING_IMMEDIATELY_UNBOXED_TO_PERFORM_COERCION

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1696040 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andreas Beeker 2015-08-15 12:09:26 +00:00
parent 05c92b7a19
commit af3f0427b5
2 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ public class Complex extends Var2or3ArgFunction implements FreeRefFunction {
StringBuffer strb = new StringBuffer("");
if (realNum != 0) {
if (isDoubleAnInt(realNum)) {
strb.append(new Double(realNum).intValue());
strb.append((int)realNum);
} else {
strb.append(realNum);
}

View File

@ -59,7 +59,7 @@ public class Rept extends Fixed2ArgFunction {
return ErrorEval.VALUE_INVALID;
}
int numberOfTimeInt = new Double(numberOfTime).intValue();
int numberOfTimeInt = (int)numberOfTime;
StringBuffer strb = new StringBuffer(strText1.length() * numberOfTimeInt);
for(int i = 0; i < numberOfTimeInt; i++) {
strb.append(strText1);