This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 6f565cf7b2 Remove unnecessary cast
6f565cf7b2 is described below
commit 6f565cf7b2dcdd040c282b8c6cedac2a7cd3e3fd
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 ce5623938b..5f20f6fed5 100644
--- a/java/org/apache/tomcat/util/buf/CharChunk.java
+++ b/java/org/apache/tomcat/util/buf/CharChunk.java
@@ -726,7 +726,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]