You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2019/10/08 15:39:06 UTC

[camel] branch master updated: Fixed CS for Camel-Bindy

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 40c1df7  Fixed CS for Camel-Bindy
40c1df7 is described below

commit 40c1df7453d0136f35a60d11edc49c2a835ba59a
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Oct 8 17:38:39 2019 +0200

    Fixed CS for Camel-Bindy
---
 .../org/apache/camel/dataformat/bindy/BindyAbstractDataFormat.java    | 2 +-
 .../bindy/csv/BindyComplexCsvUnmarshallEmptyStreamTest.java           | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/BindyAbstractDataFormat.java b/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/BindyAbstractDataFormat.java
index 3ad2604..65f46b2 100644
--- a/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/BindyAbstractDataFormat.java
+++ b/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/BindyAbstractDataFormat.java
@@ -48,7 +48,7 @@ public abstract class BindyAbstractDataFormat extends ServiceSupport implements
     private Class<?> classType;
     private CamelContext camelContext;
     private boolean unwrapSingleInstance = true;
-    private boolean allowEmptyStream = false;
+    private boolean allowEmptyStream;
 
     public BindyAbstractDataFormat() {
     }
diff --git a/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindyComplexCsvUnmarshallEmptyStreamTest.java b/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindyComplexCsvUnmarshallEmptyStreamTest.java
index 57f0ac8..0b5c3c7 100644
--- a/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindyComplexCsvUnmarshallEmptyStreamTest.java
+++ b/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindyComplexCsvUnmarshallEmptyStreamTest.java
@@ -57,8 +57,8 @@ public class BindyComplexCsvUnmarshallEmptyStreamTest extends AbstractJUnit4Spri
     public static class ContextConfig extends RouteBuilder {
         @Override
         public void configure() {
-          BindyCsvDataFormat bindyCsvDataFormat = new BindyCsvDataFormat(TYPE);
-          bindyCsvDataFormat.setAllowEmptyStream(true);
+            BindyCsvDataFormat bindyCsvDataFormat = new BindyCsvDataFormat(TYPE);
+            bindyCsvDataFormat.setAllowEmptyStream(true);
             from("direct:start")
                 .unmarshal(bindyCsvDataFormat)
                 .to("mock:result");