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

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


The following commit(s) were added to refs/heads/main by this push:
     new c7d633893a42 Correct single & operator
c7d633893a42 is described below

commit c7d633893a425016377013d88216478c881d957c
Author: AurĂ©lien Pupier <[email protected]>
AuthorDate: Thu Jun 18 12:23:31 2026 +0200

    Correct single & operator
    
    it avoids to have both sides always evaluated
    
https://sonarcloud.io/project/issues?impactSeverities=BLOCKER&impactSoftwareQualities=MAINTAINABILITY&rules=java%3AS2178&issueStatuses=OPEN%2CCONFIRMED&id=apache_camel&open=AYC4JigIeum3l7T77Xnv
    
    Signed-off-by: AurĂ©lien Pupier <[email protected]>
---
 .../java/org/apache/camel/impl/engine/DefaultStreamCachingStrategy.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultStreamCachingStrategy.java
 
b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultStreamCachingStrategy.java
index 4d08955e1aaa..ddc41bf45d44 100644
--- 
a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultStreamCachingStrategy.java
+++ 
b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultStreamCachingStrategy.java
@@ -477,7 +477,7 @@ public class DefaultStreamCachingStrategy extends 
ServiceSupport implements Came
     }
 
     private boolean isSpoolRemovable() {
-        return spoolThreshold > 0 & spoolDirectory != null && 
isRemoveSpoolDirectoryWhenStopping();
+        return spoolThreshold > 0 && spoolDirectory != null && 
isRemoveSpoolDirectoryWhenStopping();
     }
 
     @Override

Reply via email to