This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new 63e3a2d0e0 Fix a CodeQL warning
63e3a2d0e0 is described below
commit 63e3a2d0e0c33f0047b9f4e6f7fa8d487291c732
Author: Mark Thomas <[email protected]>
AuthorDate: Thu May 14 13:49:28 2026 +0100
Fix a CodeQL warning
Ensures sub-classes override equals (the current ones do).
---
java/org/apache/tomcat/util/buf/AbstractChunk.java | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/java/org/apache/tomcat/util/buf/AbstractChunk.java
b/java/org/apache/tomcat/util/buf/AbstractChunk.java
index 8afbe5ba88..0a54a02f16 100644
--- a/java/org/apache/tomcat/util/buf/AbstractChunk.java
+++ b/java/org/apache/tomcat/util/buf/AbstractChunk.java
@@ -265,6 +265,15 @@ public abstract class AbstractChunk implements Cloneable,
Serializable {
}
+ /**
+ * {@inheritDoc}
+ * <p>
+ * Sub-classes must provide an equals implementation that is consistent
with {@link AbstractChunk#hashCode()}.
+ */
+ @Override
+ public abstract boolean equals(Object obj);
+
+
/**
* Returns the hash code for this buffer.
*
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]