You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bv...@apache.org on 2012/03/08 11:24:52 UTC

svn commit: r1298341 - /camel/trunk/camel-core/src/test/java/org/apache/camel/impl/DefaultInflightRepositoryConcurrentTest.java

Author: bvahdat
Date: Thu Mar  8 10:24:51 2012
New Revision: 1298341

URL: http://svn.apache.org/viewvc?rev=1298341&view=rev
Log:
CAMEL-5058: Usage of the "final" keyword by the provided unit-test to mark TypicalConsumer as immutable.

Modified:
    camel/trunk/camel-core/src/test/java/org/apache/camel/impl/DefaultInflightRepositoryConcurrentTest.java

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/impl/DefaultInflightRepositoryConcurrentTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/impl/DefaultInflightRepositoryConcurrentTest.java?rev=1298341&r1=1298340&r2=1298341&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/impl/DefaultInflightRepositoryConcurrentTest.java (original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/impl/DefaultInflightRepositoryConcurrentTest.java Thu Mar  8 10:24:51 2012
@@ -105,10 +105,10 @@ public class DefaultInflightRepositoryCo
     }
 
     private static class TypicalConsumer implements Runnable {
-        Endpoint[] endpoints;
-        InflightRepository repo;
-        AtomicInteger locker;
-        Random rand = new Random(System.nanoTime());
+        private final Endpoint[] endpoints;
+        private final InflightRepository repo;
+        private final AtomicInteger locker;
+        private final Random rand = new Random(System.nanoTime());
 
         TypicalConsumer(Endpoint[] endpoints, InflightRepository repo, AtomicInteger locker) {
             this.endpoints = endpoints;