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

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

commit cf855bf0133e68ae4f11e1d14b102e61b1b301db
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Wed Jan 4 17:55:35 2023 +0100

    (chores) camel-ftp: avoid risky unboxing
---
 .../java/org/apache/camel/component/file/remote/RemoteFileEndpoint.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFileEndpoint.java
 
b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFileEndpoint.java
index a8e78d54e40..058f6ac834c 100644
--- 
a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFileEndpoint.java
+++ 
b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFileEndpoint.java
@@ -147,7 +147,7 @@ public abstract class RemoteFileEndpoint<T> extends 
GenericFileEndpoint<T> {
         }
 
         // if idempotent and no repository set then create a default one
-        if (isIdempotentSet() && isIdempotent() && idempotentRepository == 
null) {
+        if (isIdempotentSet() && Boolean.TRUE.equals(isIdempotent()) && 
idempotentRepository == null) {
             LOG.info("Using default memory based idempotent repository with 
cache max size: {}", DEFAULT_IDEMPOTENT_CACHE_SIZE);
             idempotentRepository = 
MemoryIdempotentRepository.memoryIdempotentRepository(DEFAULT_IDEMPOTENT_CACHE_SIZE);
         }

Reply via email to