You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2026/06/01 21:06:40 UTC
(tomcat) branch 10.1.x updated: Remove unnecessary cast
This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new 3f1d6bce92 Remove unnecessary cast
3f1d6bce92 is described below
commit 3f1d6bce920a119898d1473b8c0c9cf6ad78f21f
Author: Mark Thomas <ma...@apache.org>
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 87f1341390..2c48c94567 100644
--- a/java/org/apache/tomcat/util/buf/CharChunk.java
+++ b/java/org/apache/tomcat/util/buf/CharChunk.java
@@ -710,7 +710,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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org