camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bvah...@apache.org
Subject svn commit: r1366141 - /camel/trunk/tests/camel-itest-performance/src/main/java/org/apache/camel/tests/component/PerformanceTestComponent.java
Date Thu, 26 Jul 2012 18:40:25 GMT
Author: bvahdat
Date: Thu Jul 26 18:40:25 2012
New Revision: 1366141

URL: http://svn.apache.org/viewvc?rev=1366141&view=rev
Log:
Favor static member classes over nonstatic (Bible: Item 22).

Modified:
    camel/trunk/tests/camel-itest-performance/src/main/java/org/apache/camel/tests/component/PerformanceTestComponent.java

Modified: camel/trunk/tests/camel-itest-performance/src/main/java/org/apache/camel/tests/component/PerformanceTestComponent.java
URL: http://svn.apache.org/viewvc/camel/trunk/tests/camel-itest-performance/src/main/java/org/apache/camel/tests/component/PerformanceTestComponent.java?rev=1366141&r1=1366140&r2=1366141&view=diff
==============================================================================
--- camel/trunk/tests/camel-itest-performance/src/main/java/org/apache/camel/tests/component/PerformanceTestComponent.java
(original)
+++ camel/trunk/tests/camel-itest-performance/src/main/java/org/apache/camel/tests/component/PerformanceTestComponent.java
Thu Jul 26 18:40:25 2012
@@ -58,7 +58,7 @@ public class PerformanceTestComponent ex
             : header.equals(HEADER_ITERATIONS) ? DEFAULT_ITERATIONS : 0;
     }
 
-    private final class PerformanceTestEndpoint extends DefaultEndpoint {
+    private static final class PerformanceTestEndpoint extends DefaultEndpoint {
         private PerformanceTestConsumer consumer;
 
         public PerformanceTestEndpoint(String uri, Component component) {
@@ -91,13 +91,13 @@ public class PerformanceTestComponent ex
         }
     }
     
-    private final class PerformanceTestConsumer extends DefaultConsumer {
+    private static final class PerformanceTestConsumer extends DefaultConsumer {
         public PerformanceTestConsumer(Endpoint endpoint, Processor processor) {
             super(endpoint, processor);
         }
     }
 
-    private final class PerformanceTestProducer extends DefaultProducer implements AsyncProcessor
{
+    private static final class PerformanceTestProducer extends DefaultProducer implements
AsyncProcessor {
         public PerformanceTestProducer(Endpoint endpoint) {
             super(endpoint);
         }



Mime
View raw message