veithen commented on code in PR #59:
URL: https://github.com/apache/ws-xmlschema/pull/59#discussion_r1757233056


##########
xmlschema-core/src/main/java/org/apache/ws/commons/schema/XmlSchemaSerializer.java:
##########
@@ -72,6 +74,11 @@ public XmlSchemaSerializerException(String msg) {
     public static final String XSD_NAMESPACE = 
XMLConstants.W3C_XML_SCHEMA_NS_URI;
     private static final String XMLNS_NAMESPACE_URI = 
"http://www.w3.org/2000/xmlns/";;
 
+    /**
+     * Keeps track of already serialized schemas.
+     */
+    private static ThreadLocal<Set<XmlSchema>> serializedSchemaElements = new 
ThreadLocal<>();

Review Comment:
   Do we really need a `ThreadLocal` for this?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to