This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push: new 5f8f8c1 Camel-Debezium-Maven-Plugin: Fixed CS 5f8f8c1 is described below commit 5f8f8c1262285ada78ffba10f4fdfc0a773212a5 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Fri May 29 18:08:51 2020 +0200 Camel-Debezium-Maven-Plugin: Fixed CS --- .../java/org/apache/camel/maven/config/ConnectorConfigGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/camel-debezium-common/camel-debezium-maven-plugin/src/main/java/org/apache/camel/maven/config/ConnectorConfigGenerator.java b/components/camel-debezium-common/camel-debezium-maven-plugin/src/main/java/org/apache/camel/maven/config/ConnectorConfigGenerator.java index e38987d..c2a3f2d 100644 --- a/components/camel-debezium-common/camel-debezium-maven-plugin/src/main/java/org/apache/camel/maven/config/ConnectorConfigGenerator.java +++ b/components/camel-debezium-common/camel-debezium-maven-plugin/src/main/java/org/apache/camel/maven/config/ConnectorConfigGenerator.java @@ -183,7 +183,7 @@ public final class ConnectorConfigGenerator { if (fieldConfig.getDefaultValue() != null && !fieldConfig.getRawName().equals("database.server.id")) { if (fieldConfig.isDurationField()) { final DecimalFormat decimalFormat = new DecimalFormat("0.##"); - final Double valueAsDouble = (Double.parseDouble(fieldConfig.getDefaultValueAsString()) / 1000); + final Double valueAsDouble = Double.parseDouble(fieldConfig.getDefaultValueAsString()) / 1000; final String defaultValue = decimalFormat.format(valueAsDouble) + "s"; annotation.setLiteralValue("defaultValue", String.format("\"%s\"", defaultValue)); } else {