camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject [1/2] camel git commit: Fixed CS
Date Wed, 04 May 2016 12:56:38 GMT
Repository: camel
Updated Branches:
  refs/heads/master 8efbf0303 -> a8ab34c15


Fixed CS


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/a8ab34c1
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/a8ab34c1
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/a8ab34c1

Branch: refs/heads/master
Commit: a8ab34c15bf175449d380d4a7e1f5235b3acf3ca
Parents: 66594e9
Author: Andrea Cosentino <ancosen@gmail.com>
Authored: Wed May 4 14:53:44 2016 +0200
Committer: Andrea Cosentino <ancosen@gmail.com>
Committed: Wed May 4 14:56:01 2016 +0200

----------------------------------------------------------------------
 .../dataformat/beanio/BeanIOConfiguration.java    | 12 ++++++------
 .../camel/dataformat/beanio/BeanIODataFormat.java | 14 +++++++-------
 ...matSimpleCustomBeanReaderErrorHandlerTest.java | 18 +++++++++---------
 3 files changed, 22 insertions(+), 22 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/a8ab34c1/components/camel-beanio/src/main/java/org/apache/camel/dataformat/beanio/BeanIOConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-beanio/src/main/java/org/apache/camel/dataformat/beanio/BeanIOConfiguration.java
b/components/camel-beanio/src/main/java/org/apache/camel/dataformat/beanio/BeanIOConfiguration.java
index 18c6642..4d38694 100644
--- a/components/camel-beanio/src/main/java/org/apache/camel/dataformat/beanio/BeanIOConfiguration.java
+++ b/components/camel-beanio/src/main/java/org/apache/camel/dataformat/beanio/BeanIOConfiguration.java
@@ -91,11 +91,11 @@ public class BeanIOConfiguration {
         this.properties = properties;
     }
 
-	public BeanReaderErrorHandler getBeanReaderErrorHandler() {
-		return beanReaderErrorHandler;
-	}
+    public BeanReaderErrorHandler getBeanReaderErrorHandler() {
+        return beanReaderErrorHandler;
+    }
 
-	public void setBeanReaderErrorHandler(BeanReaderErrorHandler beanReaderErrorHandler) {
-		this.beanReaderErrorHandler = beanReaderErrorHandler;
-	}
+    public void setBeanReaderErrorHandler(BeanReaderErrorHandler beanReaderErrorHandler)
{
+        this.beanReaderErrorHandler = beanReaderErrorHandler;
+    }
 }

http://git-wip-us.apache.org/repos/asf/camel/blob/a8ab34c1/components/camel-beanio/src/main/java/org/apache/camel/dataformat/beanio/BeanIODataFormat.java
----------------------------------------------------------------------
diff --git a/components/camel-beanio/src/main/java/org/apache/camel/dataformat/beanio/BeanIODataFormat.java
b/components/camel-beanio/src/main/java/org/apache/camel/dataformat/beanio/BeanIODataFormat.java
index 3526208..8aab360 100644
--- a/components/camel-beanio/src/main/java/org/apache/camel/dataformat/beanio/BeanIODataFormat.java
+++ b/components/camel-beanio/src/main/java/org/apache/camel/dataformat/beanio/BeanIODataFormat.java
@@ -149,7 +149,7 @@ public class BeanIODataFormat extends ServiceSupport implements DataFormat,
Data
 
         try {
             if (ObjectHelper.isNotEmpty(configuration.getBeanReaderErrorHandler())) {
-            	in.setErrorHandler(configuration.getBeanReaderErrorHandler());
+                in.setErrorHandler(configuration.getBeanReaderErrorHandler());
             } else {
                 in.setErrorHandler(new BeanIOErrorHandler(configuration));
             }
@@ -224,11 +224,11 @@ public class BeanIODataFormat extends ServiceSupport implements DataFormat,
Data
         return configuration.getEncoding();
     }
     
-	public BeanReaderErrorHandler getBeanReaderErrorHandler() {
-		return configuration.getBeanReaderErrorHandler();
-	}
+    public BeanReaderErrorHandler getBeanReaderErrorHandler() {
+        return configuration.getBeanReaderErrorHandler();
+    }
 
-	public void setBeanReaderErrorHandler(BeanReaderErrorHandler beanReaderErrorHandler) {
-		configuration.setBeanReaderErrorHandler(beanReaderErrorHandler);
-	}
+    public void setBeanReaderErrorHandler(BeanReaderErrorHandler beanReaderErrorHandler)
{
+        configuration.setBeanReaderErrorHandler(beanReaderErrorHandler);
+    }
 }

http://git-wip-us.apache.org/repos/asf/camel/blob/a8ab34c1/components/camel-beanio/src/test/java/org/apache/camel/dataformat/beanio/BeanIODataFormatSimpleCustomBeanReaderErrorHandlerTest.java
----------------------------------------------------------------------
diff --git a/components/camel-beanio/src/test/java/org/apache/camel/dataformat/beanio/BeanIODataFormatSimpleCustomBeanReaderErrorHandlerTest.java
b/components/camel-beanio/src/test/java/org/apache/camel/dataformat/beanio/BeanIODataFormatSimpleCustomBeanReaderErrorHandlerTest.java
index 2ffa6ac..ad179c8 100644
--- a/components/camel-beanio/src/test/java/org/apache/camel/dataformat/beanio/BeanIODataFormatSimpleCustomBeanReaderErrorHandlerTest.java
+++ b/components/camel-beanio/src/test/java/org/apache/camel/dataformat/beanio/BeanIODataFormatSimpleCustomBeanReaderErrorHandlerTest.java
@@ -68,18 +68,18 @@ public class BeanIODataFormatSimpleCustomBeanReaderErrorHandlerTest extends
Came
             public void configure() throws Exception {
                 // START SNIPPET: e1
                 // setup beanio data format using the mapping file, loaded from the classpath
-            	BeanIODataFormat format = new BeanIODataFormat(
+                BeanIODataFormat format = new BeanIODataFormat(
                         "org/apache/camel/dataformat/beanio/mappings.xml",
                         "employeeFile");
                 
-            	BeanReaderErrorHandler reader = new BeanReaderErrorHandler() {
-					
-					@Override
-					public void handleError(BeanReaderException ex) throws Exception {
-						log.info("Error: " + ex.getMessage() + ": " + ex.getRecordContext().getRecordText());
-						return;
-					}
-				};
+                BeanReaderErrorHandler reader = new BeanReaderErrorHandler() {
+
+                    @Override
+                    public void handleError(BeanReaderException ex) throws Exception {
+                        log.info("Error: " + ex.getMessage() + ": " + ex.getRecordContext().getRecordText());
+                        return;
+                    }
+                };
                 format.setBeanReaderErrorHandler(reader);
 
                 // a route which uses the bean io data format to format a CSV data


Mime
View raw message