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 60a7b7a179 Simplify
60a7b7a179 is described below
commit 60a7b7a179de1e729d06fef192410cfb2f426a78
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]