mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
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
c9f6608c0b
commit
e1998255f9
@ -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);
|
||||
}
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user