tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1239245 - /openejb/trunk/openejb/container/openejb-core/src/main/java/org/apache/openejb/config/ConfigurationFactory.java
Date Wed, 01 Feb 2012 18:16:48 GMT
Author: rmannibucau
Date: Wed Feb  1 18:16:47 2012
New Revision: 1239245

URL: http://svn.apache.org/viewvc?rev=1239245&view=rev
Log:
updatechecker doesn't need to be an attribute

Modified:
    openejb/trunk/openejb/container/openejb-core/src/main/java/org/apache/openejb/config/ConfigurationFactory.java

Modified: openejb/trunk/openejb/container/openejb-core/src/main/java/org/apache/openejb/config/ConfigurationFactory.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-core/src/main/java/org/apache/openejb/config/ConfigurationFactory.java?rev=1239245&r1=1239244&r2=1239245&view=diff
==============================================================================
--- openejb/trunk/openejb/container/openejb-core/src/main/java/org/apache/openejb/config/ConfigurationFactory.java
(original)
+++ openejb/trunk/openejb/container/openejb-core/src/main/java/org/apache/openejb/config/ConfigurationFactory.java
Wed Feb  1 18:16:47 2012
@@ -113,7 +113,6 @@ public class ConfigurationFactory implem
     private DynamicDeployer deployer;
     private final DeploymentLoader deploymentLoader;
     private final boolean offline;
-    private Thread updateCheckerThreader = null;
     private static final String CLASSPATH_AS_EAR = "openejb.deployments.classpath.ear";
     static final String WEBSERVICES_ENABLED = "openejb.webservices.enabled";
 
@@ -317,7 +316,8 @@ public class ConfigurationFactory implem
             return sys;
         }
 
-        if (!offline && updateCheckerThreader == null) {
+        Thread updateCheckerThreader = null;
+        if (!offline) {
             updateCheckerThreader = new Thread(new UpdateChecker());
             updateCheckerThreader.start();
         }



Mime
View raw message