You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2022/06/01 04:24:39 UTC

[camel] branch main updated: CAMEL-18157: fix CS

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

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


The following commit(s) were added to refs/heads/main by this push:
     new b3c7b98e0f4 CAMEL-18157: fix CS
b3c7b98e0f4 is described below

commit b3c7b98e0f4ea0e380474f6e33f7feab68123b25
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Wed Jun 1 06:24:25 2022 +0200

    CAMEL-18157: fix CS
---
 .../main/java/org/apache/camel/component/jdbc/JdbcProducer.java   | 2 +-
 .../java/org/apache/camel/component/jdbc/JdbcFix18157Test.java    | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/components/camel-jdbc/src/main/java/org/apache/camel/component/jdbc/JdbcProducer.java b/components/camel-jdbc/src/main/java/org/apache/camel/component/jdbc/JdbcProducer.java
index e1cea75b295..6ad8aaec7d4 100644
--- a/components/camel-jdbc/src/main/java/org/apache/camel/component/jdbc/JdbcProducer.java
+++ b/components/camel-jdbc/src/main/java/org/apache/camel/component/jdbc/JdbcProducer.java
@@ -159,7 +159,7 @@ public class JdbcProducer extends DefaultProducer {
                 ps = conn.prepareStatement(preparedQuery);
             }
 
-            bindParameters(exchange,ps);
+            bindParameters(exchange, ps);
 
             int expectedCount = ps.getParameterMetaData().getParameterCount();
 
diff --git a/components/camel-jdbc/src/test/java/org/apache/camel/component/jdbc/JdbcFix18157Test.java b/components/camel-jdbc/src/test/java/org/apache/camel/component/jdbc/JdbcFix18157Test.java
index 7ab86f51080..628254ddd44 100644
--- a/components/camel-jdbc/src/test/java/org/apache/camel/component/jdbc/JdbcFix18157Test.java
+++ b/components/camel-jdbc/src/test/java/org/apache/camel/component/jdbc/JdbcFix18157Test.java
@@ -16,13 +16,13 @@
  */
 package org.apache.camel.component.jdbc;
 
+import java.util.List;
+
 import org.apache.camel.EndpointInject;
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.component.mock.MockEndpoint;
 import org.junit.jupiter.api.Test;
 
-import java.util.List;
-
 import static org.junit.jupiter.api.Assertions.assertEquals;
 
 /**
@@ -33,7 +33,6 @@ public class JdbcFix18157Test extends AbstractJdbcTestSupport {
     @EndpointInject("mock:result")
     private MockEndpoint mock;
 
-
     @Test
 
     public void whenUseHeadersAsParametersOthersParametersShouldNotBeIgnored() throws Exception {
@@ -51,7 +50,8 @@ public class JdbcFix18157Test extends AbstractJdbcTestSupport {
         return new RouteBuilder() {
             public void configure() {
                 //statement.maxRows=1 is provided as additional parameter in combination with useHeadersAsParameters=true
-                from("direct:useHeadersAsParameters").to("jdbc:testdb?statement.maxRows=1&useHeadersAsParameters=true").to("mock:result");
+                from("direct:useHeadersAsParameters").to("jdbc:testdb?statement.maxRows=1&useHeadersAsParameters=true")
+                        .to("mock:result");
             }
         };
     }