This is an automated email from the ASF dual-hosted git repository.

edcoleman pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo.git


The following commit(s) were added to refs/heads/main by this push:
     new 032bfdc  Fix typo in ConstraintChecker.java (#2037)
032bfdc is described below

commit 032bfdc72fc3f4ef36f2a07311f53639cf7551c5
Author: Umang goyal <goyalumang...@gmail.com>
AuthorDate: Wed Apr 28 00:06:26 2021 +0530

    Fix typo in ConstraintChecker.java (#2037)
    
    Changed the ArrayList object from constrains to constraints.
---
 .../accumulo/tserver/constraints/ConstraintChecker.java      | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git 
a/server/tserver/src/main/java/org/apache/accumulo/tserver/constraints/ConstraintChecker.java
 
b/server/tserver/src/main/java/org/apache/accumulo/tserver/constraints/ConstraintChecker.java
index 773f525..3acd4a8 100644
--- 
a/server/tserver/src/main/java/org/apache/accumulo/tserver/constraints/ConstraintChecker.java
+++ 
b/server/tserver/src/main/java/org/apache/accumulo/tserver/constraints/ConstraintChecker.java
@@ -39,11 +39,11 @@ import com.google.common.annotations.VisibleForTesting;
 
 public class ConstraintChecker {
 
-  private ArrayList<Constraint> constrains;
+  private ArrayList<Constraint> constraints;
   private static final Logger log = 
LoggerFactory.getLogger(ConstraintChecker.class);
 
   public ConstraintChecker(AccumuloConfiguration conf) {
-    constrains = new ArrayList<>();
+    constraints = new ArrayList<>();
 
     try {
       String context = ClassLoaderUtil.tableContext(conf);
@@ -57,13 +57,13 @@ public class ConstraintChecker {
 
           log.debug("Loaded constraint {} for {}", clazz.getName(),
               ((TableConfiguration) conf).getTableId());
-          constrains.add(clazz.getDeclaredConstructor().newInstance());
+          constraints.add(clazz.getDeclaredConstructor().newInstance());
         }
       }
 
     } catch (Exception e) {
-      constrains.clear();
-      constrains.add(new UnsatisfiableConstraint((short) -1,
+      constraints.clear();
+      constraints.add(new UnsatisfiableConstraint((short) -1,
           "Failed to load constraints, not accepting mutations."));
       log.error("Failed to load constraints " + ((TableConfiguration) 
conf).getTableId() + " " + e,
           e);
@@ -72,7 +72,7 @@ public class ConstraintChecker {
 
   @VisibleForTesting
   ArrayList<Constraint> getConstraints() {
-    return constrains;
+    return constraints;
   }
 
   private static Violations addViolation(Violations violations, 
ConstraintViolationSummary cvs) {

Reply via email to