tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r882014 - /tomcat/trunk/java/org/apache/naming/java/javaURLContextFactory.java
Date Thu, 19 Nov 2009 00:20:35 GMT
Author: markt
Date: Thu Nov 19 00:20:35 2009
New Revision: 882014

URL: http://svn.apache.org/viewvc?rev=882014&view=rev
Log:
Fix copy/paste error

Modified:
    tomcat/trunk/java/org/apache/naming/java/javaURLContextFactory.java

Modified: tomcat/trunk/java/org/apache/naming/java/javaURLContextFactory.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/naming/java/javaURLContextFactory.java?rev=882014&r1=882013&r2=882014&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/naming/java/javaURLContextFactory.java (original)
+++ tomcat/trunk/java/org/apache/naming/java/javaURLContextFactory.java Thu Nov 19 00:20:35
2009
@@ -103,8 +103,8 @@
 
         // If the thread is not bound, return a shared writable context
         if (initialContext == null) {
-            if (initialContext == null) {
-                synchronized(this) {
+            synchronized(this) {
+                if (initialContext == null) {
                     initialContext = new NamingContext(
                             (Hashtable<String,Object>)environment, MAIN);
                 }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message