]> source.dussan.org Git - poi.git/commitdiff
FindBugs - BX_UNBOXING_IMMEDIATELY_REBOXED
authorAndreas Beeker <kiwiwings@apache.org>
Sat, 15 Aug 2015 12:13:09 +0000 (12:13 +0000)
committerAndreas Beeker <kiwiwings@apache.org>
Sat, 15 Aug 2015 12:13:09 +0000 (12:13 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1696042 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/ss/formula/functions/Value.java

index 09992f32fc7f859f0011b8d925cc7ab0bc8829a8..056ec2f3d16fb93ed33c38804e6d491852b33876 100644 (file)
@@ -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;
        }
 }