camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hadr...@apache.org
Subject svn commit: r946256 - /camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultCamelContext.java
Date Wed, 19 May 2010 16:17:28 GMT
Author: hadrian
Date: Wed May 19 16:17:28 2010
New Revision: 946256

URL: http://svn.apache.org/viewvc?rev=946256&view=rev
Log:
Checkstyle fixes in preparatio of release

Modified:
    camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultCamelContext.java

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultCamelContext.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultCamelContext.java?rev=946256&r1=946255&r2=946256&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultCamelContext.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultCamelContext.java Wed
May 19 16:17:28 2010
@@ -109,7 +109,7 @@ import org.apache.commons.logging.LogFac
 public class DefaultCamelContext extends ServiceSupport implements CamelContext {
     private static final transient Log LOG = LogFactory.getLog(DefaultCamelContext.class);
     private static final String NAME_PREFIX = "camel-";
-    private static final AtomicInteger contextCounter = new AtomicInteger(0);
+    private static final AtomicInteger CONTEXT_COUNTER = new AtomicInteger(0);
     private ClassLoader applicationContextClassLoader;
     private boolean routeDefinitionInitiated;
     private String name;
@@ -166,7 +166,7 @@ public class DefaultCamelContext extends
 
     public DefaultCamelContext() {
         super();
-        name = NAME_PREFIX + contextCounter.incrementAndGet();
+        name = NAME_PREFIX + CONTEXT_COUNTER.incrementAndGet();
 
         // use WebSphere specific resolver if running on WebSphere
         if (WebSpherePackageScanClassResolver.isWebSphereClassLoader(this.getClass().getClassLoader()))
{
@@ -1556,11 +1556,11 @@ public class DefaultCamelContext extends
     }
 
     /**
-     * Reset contextCounter to a preset value. Mostly used for tests to ensure a predictable
getName()
+     * Reset CONTEXT_COUNTER to a preset value. Mostly used for tests to ensure a predictable
getName()
      * 
-     * @param value new value for the contextCounter
+     * @param value new value for the CONTEXT_COUNTER
      */
     public static void setContextCounter(int value) {
-        contextCounter.set(value);
+        CONTEXT_COUNTER.set(value);
     }
 }



Mime
View raw message