Skip to content

Commit 5440280

Browse files
committed
Fix a CodeQL warning
Ensures sub-classes override equals (the current ones do).
1 parent 9a549f9 commit 5440280

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

java/org/apache/tomcat/util/buf/AbstractChunk.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,15 @@ public int hashCode() {
241241
}
242242

243243

244+
/**
245+
* {@inheritDoc}
246+
* <p>
247+
* Sub-classes must provide an equals implementation that is consistent with {@link AbstractChunk#hashCode()}.
248+
*/
249+
@Override
250+
public abstract boolean equals(Object obj);
251+
252+
244253
/**
245254
* Returns the hash code for this buffer.
246255
*

0 commit comments

Comments
 (0)