This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/11.0.x by this push:
new cccd914f30 Fix a CodeQL warning
cccd914f30 is described below
commit cccd914f301622e519cbb652fbbae70ceafdac90
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 9fa48e5394..aa34d520d4 100644
--- a/java/org/apache/tomcat/util/buf/AbstractChunk.java
+++ b/java/org/apache/tomcat/util/buf/AbstractChunk.java
@@ -267,6 +267,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]