You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2011/08/31 08:31:38 UTC

svn commit: r1163504 - in /camel/trunk/camel-core/src/main/java/org/apache/camel: impl/EndpointRegistry.java util/LRUSoftCache.java

Author: davsclaus
Date: Wed Aug 31 06:31:38 2011
New Revision: 1163504

URL: http://svn.apache.org/viewvc?rev=1163504&view=rev
Log:
Fixed CS

Modified:
    camel/trunk/camel-core/src/main/java/org/apache/camel/impl/EndpointRegistry.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/util/LRUSoftCache.java

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/impl/EndpointRegistry.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/EndpointRegistry.java?rev=1163504&r1=1163503&r2=1163504&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/impl/EndpointRegistry.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/impl/EndpointRegistry.java Wed Aug 31 06:31:38 2011
@@ -29,8 +29,6 @@ import org.apache.camel.util.ServiceHelp
  * Endpoint registry which is a based on a {@link org.apache.camel.util.LRUSoftCache}.
  * <p/>
  * We use a soft reference cache to allow the JVM to re-claim memory if it runs low on memory.
- *
- * @version 
  */
 public class EndpointRegistry extends LRUSoftCache<EndpointKey, Endpoint> implements Service {
 
@@ -46,20 +44,20 @@ public class EndpointRegistry extends LR
         putAll(endpoints);
     }
 
-	@Override
-	public void start() throws Exception {
-		resetStatistics();
-	}
+    @Override
+    public void start() throws Exception {
+        resetStatistics();
+    }
 
-	@Override
-	public void stop() throws Exception {
+    @Override
+    public void stop() throws Exception {
         if (!isEmpty()) {
             ServiceHelper.stopServices(values());
         }
         purge();
-	}
+    }
 
-	/**
+    /**
      * Purges the cache
      */
     public void purge() {

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/util/LRUSoftCache.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/util/LRUSoftCache.java?rev=1163504&r1=1163503&r2=1163504&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/util/LRUSoftCache.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/util/LRUSoftCache.java Wed Aug 31 06:31:38 2011
@@ -108,7 +108,7 @@ public class LRUSoftCache<K, V> extends 
         // only count as a size if there is a value
         int size = 0;
         for (V value : super.values()) {
-        	SoftReference<?> ref = (SoftReference<?>)value;
+            SoftReference<?> ref = (SoftReference<?>) value;
             if (ref != null && ref.get() != null) {
                 size++;
             }