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:
Andreas Beeker 2015-08-15 12:13:09 +00:00
parent af3f0427b5
commit 860a1ecae0

View File

@ -186,7 +186,7 @@ public final class Value extends Fixed1ArgFunction {
// still a problem parsing the number - probably out of range // still a problem parsing the number - probably out of range
return null; return null;
} }
Double result = new Double(foundUnaryMinus ? -d : d); double result = foundUnaryMinus ? -d : d;
return foundPercentage ? result /100 : result; return foundPercentage ? result/100. : result;
} }
} }