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

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

commit 25705964e0ab2a3c8141a92b6fd5f766140b7ddd
Author: Pascal Schumacher <pascalschumac...@gmx.net>
AuthorDate: Sun May 31 09:15:05 2020 +0200

    camel-package-maven-plugin: Remove use of String#format with no effect in 
PropertyConfigurerGenerator.
---
 .../org/apache/camel/maven/packaging/PropertyConfigurerGenerator.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PropertyConfigurerGenerator.java
 
b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PropertyConfigurerGenerator.java
index 0de4bc2..fdf60c0 100644
--- 
a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PropertyConfigurerGenerator.java
+++ 
b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PropertyConfigurerGenerator.java
@@ -164,7 +164,7 @@ public final class PropertyConfigurerGenerator {
         // target.setGroupSize(property(camelContext, java.lang.Integer.class, 
value))
         String rv;
         if ("duration".equals(optionKind) && "long".equals(type)) {
-            rv = String.format("property(camelContext, 
java.time.Duration.class, value).toMillis()", type);
+            rv = "property(camelContext, java.time.Duration.class, 
value).toMillis()";
         } else {
             rv = String.format("property(camelContext, %s.class, value)", 
type);
         }

Reply via email to