Repository: camel
Updated Branches:
  refs/heads/master 614326893 -> 6888a8c45


CAMEL-10267 - Use Get method in LoadCache


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/eb64a8e5
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/eb64a8e5
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/eb64a8e5

Branch: refs/heads/master
Commit: eb64a8e5dcba3ee1c0ddcbb6c1c81a9d361602da
Parents: 6143268
Author: Andrea Cosentino <anco...@gmail.com>
Authored: Thu Jun 22 09:29:10 2017 +0200
Committer: Andrea Cosentino <anco...@gmail.com>
Committed: Thu Jun 22 09:29:10 2017 +0200

----------------------------------------------------------------------
 .../camel/component/caffeine/load/CaffeineLoadCacheProducer.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/eb64a8e5/components/camel-caffeine/src/main/java/org/apache/camel/component/caffeine/load/CaffeineLoadCacheProducer.java
----------------------------------------------------------------------
diff --git 
a/components/camel-caffeine/src/main/java/org/apache/camel/component/caffeine/load/CaffeineLoadCacheProducer.java
 
b/components/camel-caffeine/src/main/java/org/apache/camel/component/caffeine/load/CaffeineLoadCacheProducer.java
index ccc552f..1dd4299 100644
--- 
a/components/camel-caffeine/src/main/java/org/apache/camel/component/caffeine/load/CaffeineLoadCacheProducer.java
+++ 
b/components/camel-caffeine/src/main/java/org/apache/camel/component/caffeine/load/CaffeineLoadCacheProducer.java
@@ -67,7 +67,7 @@ public class CaffeineLoadCacheProducer extends 
HeaderSelectorProducer {
 
     @InvokeOnHeader(CaffeineConstants.ACTION_GET)
     public void onGet(Message message) throws Exception {
-        Object result = cache.getIfPresent(getKey(message));
+        Object result = cache.get(getKey(message));
 
         setResult(message, true, result, null);
     }

Reply via email to