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 1ca979272c Simplify
1ca979272c is described below
commit 1ca979272ca89f57e37520d0ce1e8b1121d4d113
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 9e724e00fc..2378205e1f 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]