Author: fanningpj
Date: Wed Mar 20 23:43:02 2019
New Revision: 1855958

URL: http://svn.apache.org/viewvc?rev=1855958&view=rev
Log:
remove unnecessary synchronization

Modified:
    
xmlbeans/trunk/src/common/org/apache/xmlbeans/impl/common/DocumentHelper.java

Modified: 
xmlbeans/trunk/src/common/org/apache/xmlbeans/impl/common/DocumentHelper.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/trunk/src/common/org/apache/xmlbeans/impl/common/DocumentHelper.java?rev=1855958&r1=1855957&r2=1855958&view=diff
==============================================================================
--- 
xmlbeans/trunk/src/common/org/apache/xmlbeans/impl/common/DocumentHelper.java 
(original)
+++ 
xmlbeans/trunk/src/common/org/apache/xmlbeans/impl/common/DocumentHelper.java 
Wed Mar 20 23:43:02 2019
@@ -84,7 +84,7 @@ public final class DocumentHelper {
      * @throws IllegalStateException If creating the DocumentBuilder fails, 
e.g.
      *  due to {@link ParserConfigurationException}.
      */
-    public static synchronized DocumentBuilder 
newDocumentBuilder(XmlOptionsBean xmlOptions) {
+    public static DocumentBuilder newDocumentBuilder(XmlOptionsBean 
xmlOptions) {
         try {
             DocumentBuilder documentBuilder = 
documentBuilderFactory(xmlOptions).newDocumentBuilder();
             
documentBuilder.setEntityResolver(SAXHelper.IGNORING_ENTITY_RESOLVER);
@@ -176,7 +176,7 @@ public final class DocumentHelper {
     /**
      * Creates a new DOM Document
      */
-    public static synchronized Document createDocument() {
+    public static Document createDocument() {
         return documentBuilderSingleton.newDocument();
     }
 }



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

Reply via email to