camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [camel] 02/02: CAMEL-12037: Fixed CS. This closes #2118
Date Sat, 25 Nov 2017 17:05:03 GMT
This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch camel-2.20.x
in repository https://gitbox.apache.org/repos/asf/camel.git

commit daf844454cde5bdeb3a138bfe536ac57d01288c6
Author: Claus Ibsen <claus.ibsen@gmail.com>
AuthorDate: Sat Nov 25 18:03:46 2017 +0100

    CAMEL-12037: Fixed CS. This closes #2118
---
 .../camel/processor/idempotent/FileIdempotentRepository.java       | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/camel-core/src/main/java/org/apache/camel/processor/idempotent/FileIdempotentRepository.java
b/camel-core/src/main/java/org/apache/camel/processor/idempotent/FileIdempotentRepository.java
index 01796f2..61063ff 100644
--- a/camel-core/src/main/java/org/apache/camel/processor/idempotent/FileIdempotentRepository.java
+++ b/camel-core/src/main/java/org/apache/camel/processor/idempotent/FileIdempotentRepository.java
@@ -51,7 +51,7 @@ public class FileIdempotentRepository extends ServiceSupport implements
Idempote
     private Map<String, Object> cache;
     private File fileStore;
     private long maxFileStoreSize = 1024 * 1000L; // 1mb store file
-    private AtomicBoolean init = new AtomicBoolean();
+    private final AtomicBoolean init = new AtomicBoolean();
 
     public FileIdempotentRepository() {
     }
@@ -334,10 +334,9 @@ public class FileIdempotentRepository extends ServiceSupport implements
Idempote
     protected void doStart() throws Exception {
         ObjectHelper.notNull(fileStore, "fileStore", this);
 
-        //CAMEL-12037
         if (this.cache == null) {
-        	// default use a 1st level cache
-        	this.cache = LRUCacheFactory.newLRUCache(1000);
+            // default use a 1st level cache
+            this.cache = LRUCacheFactory.newLRUCache(1000);
         }
 
         // init store if not loaded before

-- 
To stop receiving notification emails like this one, please contact
"commits@camel.apache.org" <commits@camel.apache.org>.

Mime
View raw message