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 2017/11/25 17:05:02 UTC

[camel] branch master updated (1822e8c -> 8bfcbc1)

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git.


    from 1822e8c  CAMEL-11869: Upgrade mockito-core to version 2.11.0 for camel-weather
     add 9c002bf  CAMEL-12037 Idempotent repository cache initialization fix.
     new 8bfcbc1  CAMEL-12037: Fixed CS. This closes #2118

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../camel/processor/idempotent/FileIdempotentRepository.java      | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

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

[camel] 01/01: CAMEL-12037: Fixed CS. This closes #2118

Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 8bfcbc1e1c16e75919b247fffd0913b723349048
Author: Claus Ibsen <cl...@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" <co...@camel.apache.org>.