orpiske commented on code in PR #14449:
URL: https://github.com/apache/camel/pull/14449#discussion_r1635842117


##########
catalog/camel-route-parser/src/main/java/org/apache/camel/parser/helper/ParserCommon.java:
##########
@@ -118,8 +118,8 @@ static FieldSource<JavaClassSource> 
getField(JavaClassSource clazz, Block block,
     public static boolean isNumericOperator(JavaClassSource clazz, Block 
block, Expression expression) {
         if (expression instanceof NumberLiteral) {
             return true;
-        } else if (expression instanceof SimpleName) {
-            FieldSource<JavaClassSource> field = getField(clazz, block, 
(SimpleName) expression);
+        } else if (expression instanceof SimpleName simpleName) {
+            FieldSource<JavaClassSource> field = getField(clazz, block, 
simpleName);

Review Comment:
   Also, this part here implies that there is something more other than tests. 
Maybe adjust the PR description, commit message and/or reference a Jira ticket 
if you are providing a fix. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to