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:
parent
05c92b7a19
commit
af3f0427b5
@ -104,7 +104,7 @@ public class Complex extends Var2or3ArgFunction implements FreeRefFunction {
|
|||||||
StringBuffer strb = new StringBuffer("");
|
StringBuffer strb = new StringBuffer("");
|
||||||
if (realNum != 0) {
|
if (realNum != 0) {
|
||||||
if (isDoubleAnInt(realNum)) {
|
if (isDoubleAnInt(realNum)) {
|
||||||
strb.append(new Double(realNum).intValue());
|
strb.append((int)realNum);
|
||||||
} else {
|
} else {
|
||||||
strb.append(realNum);
|
strb.append(realNum);
|
||||||
}
|
}
|
||||||
|
@ -59,7 +59,7 @@ public class Rept extends Fixed2ArgFunction {
|
|||||||
return ErrorEval.VALUE_INVALID;
|
return ErrorEval.VALUE_INVALID;
|
||||||
}
|
}
|
||||||
|
|
||||||
int numberOfTimeInt = new Double(numberOfTime).intValue();
|
int numberOfTimeInt = (int)numberOfTime;
|
||||||
StringBuffer strb = new StringBuffer(strText1.length() * numberOfTimeInt);
|
StringBuffer strb = new StringBuffer(strText1.length() * numberOfTimeInt);
|
||||||
for(int i = 0; i < numberOfTimeInt; i++) {
|
for(int i = 0; i < numberOfTimeInt; i++) {
|
||||||
strb.append(strText1);
|
strb.append(strText1);
|
||||||
|
Loading…
Reference in New Issue
Block a user