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

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

commit ee0b341576c929da3a7447704830e416a9274883
Author: Christoph Deppisch <[email protected]>
AuthorDate: Wed Nov 11 13:31:29 2026 +0100

    CAMEL-26766: Add parentheses for operator precedence clarity
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
---
 .../main/java/org/apache/camel/dsl/jbang/core/common/PluginHelper.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/common/PluginHelper.java
 
b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/common/PluginHelper.java
index dd07e5de658d..bee57591977b 100644
--- 
a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/common/PluginHelper.java
+++ 
b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/common/PluginHelper.java
@@ -130,7 +130,7 @@ public final class PluginHelper {
         }
         Path fileName = pluginConfigPath.getFileName();
         if (Files.isRegularFile(pluginConfigPath)
-                || fileName != null && 
fileName.toString().toLowerCase(Locale.ROOT).endsWith(".json")) {
+                || (fileName != null && 
fileName.toString().toLowerCase(Locale.ROOT).endsWith(".json"))) {
             return pluginConfigPath;
         }
         // does not exist and has no .json suffix — treated as a directory 
(created on first save)

Reply via email to