]> source.dussan.org Git - poi.git/commitdiff
reformat
authorPJ Fanning <fanningpj@apache.org>
Fri, 29 Apr 2022 20:47:25 +0000 (20:47 +0000)
committerPJ Fanning <fanningpj@apache.org>
Fri, 29 Apr 2022 20:47:25 +0000 (20:47 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1900398 13f79535-47bb-0310-9956-ffa450edef68

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

index b6f3d937b78e4f0c2af6f3575ef1ed8151b1cd3f..d489790dd2f534ae47a147606c98a604a967fe9e 100644 (file)
@@ -32,21 +32,21 @@ public class AverageIf extends Baseifs {
     public static final FreeRefFunction instance = new Averageifs();
 
     @Override
-    public ValueEval evaluate(ValueEval[] _args, OperationEvaluationContext _ec) {
-        if (_args.length < 2) {
+    public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {
+        if (args.length < 2) {
             return ErrorEval.VALUE_INVALID;
         }
 
         try {
-            AreaEval sumRange = convertRangeArg(_args[0]);
+            AreaEval sumRange = convertRangeArg(args[0]);
 
-            if (_args.length == 3) {
-                sumRange = convertRangeArg(_args[2]);
+            if (args.length == 3) {
+                sumRange = convertRangeArg(args[2]);
             }
 
             // collect pairs of ranges and criteria
-            AreaEval ae = convertRangeArg(_args[0]);
-            I_MatchPredicate mp = Countif.createCriteriaPredicate(_args[1], _ec.getRowIndex(), _ec.getColumnIndex());
+            AreaEval ae = convertRangeArg(args[0]);
+            I_MatchPredicate mp = Countif.createCriteriaPredicate(args[1], ec.getRowIndex(), ec.getColumnIndex());
 
             if (mp instanceof Countif.ErrorMatcher) {
                 throw new EvaluationException(ErrorEval.valueOf(((Countif.ErrorMatcher) mp).getValue()));