Author: alessio.soldano(a)jboss.com
Date: 2009-09-10 13:57:41 -0400 (Thu, 10 Sep 2009)
New Revision: 10677
Modified:
common/trunk/src/main/java/org/jboss/wsf/common/DOMUtils.java
Log:
[JBWS-2753] Moving back thread locals to non inheritable
Modified: common/trunk/src/main/java/org/jboss/wsf/common/DOMUtils.java
===================================================================
--- common/trunk/src/main/java/org/jboss/wsf/common/DOMUtils.java 2009-09-10 16:49:44 UTC
(rev 10676)
+++ common/trunk/src/main/java/org/jboss/wsf/common/DOMUtils.java 2009-09-10 17:57:41 UTC
(rev 10677)
@@ -73,8 +73,8 @@
private static final String DEFER_NODE_EXPANSION_FEATURE =
"http://apache.org/xml/features/dom/defer-node-expansion";
// All elements created by the same thread are created by the same builder and belong
to the same doc
- private static ThreadLocal<Document> documentThreadLocal = new
InheritableThreadLocal<Document>();
- private static ThreadLocal<DocumentBuilder> builderThreadLocal = new
InheritableThreadLocal<DocumentBuilder>() {
+ private static ThreadLocal<Document> documentThreadLocal = new
ThreadLocal<Document>();
+ private static ThreadLocal<DocumentBuilder> builderThreadLocal = new
ThreadLocal<DocumentBuilder>() {
protected DocumentBuilder initialValue()
{
DocumentBuilderFactory factory = null;
Show replies by date