You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "davsclaus (via GitHub)" <gi...@apache.org> on 2023/04/09 05:42:18 UTC

[GitHub] [camel] davsclaus commented on a diff in pull request #9831: Fixed results of inspection "redundant local variable" for tooling

davsclaus commented on code in PR #9831:
URL: https://github.com/apache/camel/pull/9831#discussion_r1161216154


##########
tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/EndpointSchemaGeneratorMojo.java:
##########
@@ -1051,9 +1051,8 @@ protected void findComponentClassProperties(
                             .filter(opt -> name.equals(opt.getName())).findAny();
                     if (prev.isPresent()) {
                         String prv = prev.get().getJavaType();
-                        String cur = fieldTypeName;

Review Comment:
   using `cur` for current makes the code easier to read, so lets keep the code as-is



-- 
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-unsubscribe@camel.apache.org

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