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

commit e6c48c9dae5be8b415e1badda86139d49e98cf9c
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sun Jun 30 07:49:34 2024 -0400

    Remove redundant keyword
---
 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 b2f8664..f7dcf06 100644
--- a/src/main/java/org/apache/commons/logging/impl/WeakHashtable.java
+++ b/src/main/java/org/apache/commons/logging/impl/WeakHashtable.java
@@ -213,7 +213,7 @@ public final class WeakHashtable extends Hashtable {
                     // objects could test equal but have different hash codes.
                     // We can reduce (not eliminate) the chance of this
                     // happening by comparing hash codes.
-                    result = result && this.hashCode() == otherKey.hashCode();
+                    result = result && hashCode() == otherKey.hashCode();
                     // In any case, as our c'tor does not allow null referants
                     // and Hashtable does not do equality checks between
                     // existing keys, normal hashtable operations should never

Reply via email to