Author: rott
Date: Tue Oct  7 09:39:14 2008
New Revision: 702536

URL: http://svn.apache.org/viewvc?rev=702536&view=rev
Log:
fix previous commit in 702516.  Sorry, I introduced bad code in 702516.  This 
commit fixes that.

Modified:
    
webservices/commons/trunk/modules/XmlSchema/src/main/java/org/apache/ws/commons/schema/SchemaBuilder.java

Modified: 
webservices/commons/trunk/modules/XmlSchema/src/main/java/org/apache/ws/commons/schema/SchemaBuilder.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/main/java/org/apache/ws/commons/schema/SchemaBuilder.java?rev=702536&r1=702535&r2=702536&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/XmlSchema/src/main/java/org/apache/ws/commons/schema/SchemaBuilder.java
 (original)
+++ 
webservices/commons/trunk/modules/XmlSchema/src/main/java/org/apache/ws/commons/schema/SchemaBuilder.java
 Tue Oct  7 09:39:14 2008
@@ -95,20 +95,16 @@
                schema = new XmlSchema();
        }
     
-    public static void initCache() {
-        synchronized(resolvedSchemas) {
-            if (resolvedSchemas == null) {
-                resolvedSchemas = new Hashtable();
-            }
+    public static synchronized void initCache() {
+        if (resolvedSchemas == null) {
+            resolvedSchemas = new Hashtable();
         }
     }
     
-    public static void clearCache() {
-        synchronized(resolvedSchemas) {
-            if (resolvedSchemas != null) {
-                resolvedSchemas.clear();  // necessary?
-                resolvedSchemas = null;
-            }
+    public static synchronized void clearCache() {
+        if (resolvedSchemas != null) {
+            resolvedSchemas.clear();  // necessary?
+            resolvedSchemas = null;
         }
     }
 


Reply via email to