This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new 9e1e823f24 Remove unnecessary cast
9e1e823f24 is described below
commit 9e1e823f24ad12170c77bbedb40952b37279939d
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]