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/16 14:51:17 UTC
(tomcat) branch 9.0.x updated: Simplify
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 38077add4b Simplify
38077add4b is described below
commit 38077add4bccf29c3bf63feefb6bac1e7666ef39
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Tue Jun 16 15:50:56 2026 +0100
Simplify
---
java/javax/servlet/jsp/tagext/TagData.java | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/java/javax/servlet/jsp/tagext/TagData.java b/java/javax/servlet/jsp/tagext/TagData.java
index caef5ef0c0..82d4ff8426 100644
--- a/java/javax/servlet/jsp/tagext/TagData.java
+++ b/java/javax/servlet/jsp/tagext/TagData.java
@@ -138,14 +138,9 @@ public class TagData implements Cloneable {
@Override
protected Object clone() throws CloneNotSupportedException {
- try {
- TagData clone = (TagData) super.clone();
- clone.attributes = new Hashtable<>(attributes);
- return clone;
- } catch (CloneNotSupportedException e) {
- // Should never happen
- throw new InternalError(e);
- }
+ TagData clone = (TagData) super.clone();
+ clone.attributes = new Hashtable<>(attributes);
+ return clone;
}
// private data
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org