]> source.dussan.org Git - poi.git/commitdiff
small refactor
authorPJ Fanning <fanningpj@apache.org>
Wed, 25 May 2022 20:45:36 +0000 (20:45 +0000)
committerPJ Fanning <fanningpj@apache.org>
Wed, 25 May 2022 20:45:36 +0000 (20:45 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1901259 13f79535-47bb-0310-9956-ffa450edef68

poi/src/main/java/org/apache/poi/ss/formula/functions/DAverage.java

index 2d4dea2cc253b18591d48d2cddd399165bf8d859..c8c00c217bf0a2f7389d00ea7c9876c8b6c15ee7 100644 (file)
@@ -43,10 +43,10 @@ public final class DAverage implements IDStarAlgorithm {
 
     @Override
     public ValueEval getResult() {
-        return count == 0 ? NumberEval.ZERO : new NumberEval(divide());
+        return count == 0 ? NumberEval.ZERO : new NumberEval(getAverage());
     }
 
-    private double divide() {
+    private double getAverage() {
         return divide(total, count);
     }