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

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-logging.git


The following commit(s) were added to refs/heads/master by this push:
     new 8b539bd  Remove useless null-check.
8b539bd is described below

commit 8b539bdf2322cc7f7d6e6683bf326d85a0f22035
Author: Gary Gregory <[email protected]>
AuthorDate: Fri Nov 20 17:26:01 2020 -0500

    Remove useless null-check.
---
 src/main/java/org/apache/commons/logging/impl/WeakHashtable.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/logging/impl/WeakHashtable.java 
b/src/main/java/org/apache/commons/logging/impl/WeakHashtable.java
index 0c65975..8accbd5 100644
--- a/src/main/java/org/apache/commons/logging/impl/WeakHashtable.java
+++ b/src/main/java/org/apache/commons/logging/impl/WeakHashtable.java
@@ -362,7 +362,7 @@ public final class WeakHashtable extends Hashtable {
 
         public boolean equals(Object o) {
             boolean result = false;
-            if (o != null && o instanceof Map.Entry) {
+            if (o instanceof Map.Entry) {
                 Map.Entry entry = (Map.Entry) o;
                 result =    (getKey()==null ?
                                             entry.getKey() == null :

Reply via email to