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

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


The following commit(s) were added to refs/heads/master by this push:
     new b7d23cb  Add additional simplification of equals() method. (#1544)
b7d23cb is described below

commit b7d23cb3dd6eb706d70f1b1c959ab3caca17827a
Author: Mark Owens <jmar...@apache.org>
AuthorDate: Wed Mar 4 16:16:52 2020 -0500

    Add additional simplification of equals() method. (#1544)
    
    Adding an additional simplification to the equals() method of 
Condition.java.
---
 core/src/main/java/org/apache/accumulo/core/data/Condition.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/src/main/java/org/apache/accumulo/core/data/Condition.java 
b/core/src/main/java/org/apache/accumulo/core/data/Condition.java
index 30d8140..404f31d 100644
--- a/core/src/main/java/org/apache/accumulo/core/data/Condition.java
+++ b/core/src/main/java/org/apache/accumulo/core/data/Condition.java
@@ -311,7 +311,7 @@ public class Condition {
   public boolean equals(Object o) {
     if (this == o)
       return true;
-    if (o == null || !(o instanceof Condition))
+    if (!(o instanceof Condition))
       return false;
     Condition condition = (Condition) o;
     return Objects.equals(cf, condition.cf) && Objects.equals(cq, condition.cq)

Reply via email to