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 08dd03c120 Remove unnecessary cast
08dd03c120 is described below
commit 08dd03c1202a4d34b312fdd1525ffa6ddf6d9fe7
Author: Mark Thomas <[email protected]>
AuthorDate: Mon Jun 1 22:05:37 2026 +0100
Remove unnecessary cast
---
java/org/apache/tomcat/util/buf/CharChunk.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/java/org/apache/tomcat/util/buf/CharChunk.java
b/java/org/apache/tomcat/util/buf/CharChunk.java
index c7cbd24a95..e4f54fa267 100644
--- a/java/org/apache/tomcat/util/buf/CharChunk.java
+++ b/java/org/apache/tomcat/util/buf/CharChunk.java
@@ -712,7 +712,7 @@ public final class CharChunk extends AbstractChunk
implements CharSequence {
@Override
public CharSequence subSequence(int start, int end) {
try {
- CharChunk result = (CharChunk) this.clone();
+ CharChunk result = this.clone();
result.setStart(this.start + start);
result.setEnd(this.start + end);
return result;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]