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 4700772996 Simplify
4700772996 is described below

commit 470077299638b1c180ac3f68caeadbdcef5e51b9
Author: Mark Thomas <[email protected]>
AuthorDate: Tue Jun 16 15:50:56 2026 +0100

    Simplify
---
 java/jakarta/servlet/jsp/tagext/TagData.java | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/java/jakarta/servlet/jsp/tagext/TagData.java 
b/java/jakarta/servlet/jsp/tagext/TagData.java
index 10a2feb5c9..15034c9bfd 100644
--- a/java/jakarta/servlet/jsp/tagext/TagData.java
+++ b/java/jakarta/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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to