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 5239836a877b4db206987b80e05d414e1b57b31a
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Mon Jan 26 11:46:56 2026 +0000

    (chores): modernize instanceof checks in camel-mustache
---
 .../java/org/apache/camel/component/mustache/MustacheEndpoint.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/components/camel-mustache/src/main/java/org/apache/camel/component/mustache/MustacheEndpoint.java
 
b/components/camel-mustache/src/main/java/org/apache/camel/component/mustache/MustacheEndpoint.java
index 9debf7fca3f2..83d351081f43 100644
--- 
a/components/camel-mustache/src/main/java/org/apache/camel/component/mustache/MustacheEndpoint.java
+++ 
b/components/camel-mustache/src/main/java/org/apache/camel/component/mustache/MustacheEndpoint.java
@@ -139,8 +139,8 @@ public class MustacheEndpoint extends ResourceEndpoint {
                 Thread.currentThread().setContextClassLoader(apcl);
             }
             Mustache newMustache;
-            if (startDelimiter != null && endDelimiter != null && 
mustacheFactory instanceof DefaultMustacheFactory) {
-                DefaultMustacheFactory defaultMustacheFactory = 
(DefaultMustacheFactory) mustacheFactory;
+            if (startDelimiter != null && endDelimiter != null
+                    && mustacheFactory instanceof DefaultMustacheFactory 
defaultMustacheFactory) {
                 newMustache = defaultMustacheFactory.compile(resourceReader, 
resourceUri, startDelimiter, endDelimiter);
             } else {
                 newMustache = mustacheFactory.compile(resourceReader, 
resourceUri);

Reply via email to