FindBugs - BX_UNBOXING_IMMEDIATELY_REBOXED
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1696042 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
af3f0427b5
commit
860a1ecae0
@ -186,7 +186,7 @@ public final class Value extends Fixed1ArgFunction {
|
||||
// still a problem parsing the number - probably out of range
|
||||
return null;
|
||||
}
|
||||
Double result = new Double(foundUnaryMinus ? -d : d);
|
||||
return foundPercentage ? result /100 : result;
|
||||
double result = foundUnaryMinus ? -d : d;
|
||||
return foundPercentage ? result/100. : result;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user