camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject git commit: CAMEL-7866 Fixed the CS errors
Date Wed, 08 Oct 2014 02:30:27 GMT
Repository: camel
Updated Branches:
  refs/heads/camel-2.14.x 251cf4d04 -> b068aa8d5


CAMEL-7866 Fixed the CS errors


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

Branch: refs/heads/camel-2.14.x
Commit: b068aa8d54c92ad16b2797f1527708bba5d19588
Parents: 251cf4d
Author: Willem Jiang <willem.jiang@gmail.com>
Authored: Sun Sep 28 16:23:10 2014 +0800
Committer: Willem Jiang <willem.jiang@gmail.com>
Committed: Wed Oct 8 10:28:58 2014 +0800

----------------------------------------------------------------------
 .../camel/dataformat/barcode/BarcodeTestBase.java | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/b068aa8d/components/camel-barcode/src/test/java/org/apache/camel/dataformat/barcode/BarcodeTestBase.java
----------------------------------------------------------------------
diff --git a/components/camel-barcode/src/test/java/org/apache/camel/dataformat/barcode/BarcodeTestBase.java
b/components/camel-barcode/src/test/java/org/apache/camel/dataformat/barcode/BarcodeTestBase.java
index 251dc9d..f875e8a 100644
--- a/components/camel-barcode/src/test/java/org/apache/camel/dataformat/barcode/BarcodeTestBase.java
+++ b/components/camel-barcode/src/test/java/org/apache/camel/dataformat/barcode/BarcodeTestBase.java
@@ -16,6 +16,14 @@
  */
 package org.apache.camel.dataformat.barcode;
 
+import java.awt.image.BufferedImage;
+import java.io.File;
+import java.io.IOException;
+
+import javax.imageio.ImageIO;
+import javax.imageio.ImageReader;
+import javax.imageio.stream.ImageInputStream;
+
 import com.google.zxing.BarcodeFormat;
 import com.google.zxing.BinaryBitmap;
 import com.google.zxing.MultiFormatReader;
@@ -24,13 +32,6 @@ import com.google.zxing.ReaderException;
 import com.google.zxing.Result;
 import com.google.zxing.client.j2se.BufferedImageLuminanceSource;
 import com.google.zxing.common.HybridBinarizer;
-import java.awt.image.BufferedImage;
-import java.io.File;
-import java.io.IOException;
-
-import javax.imageio.ImageIO;
-import javax.imageio.ImageReader;
-import javax.imageio.stream.ImageInputStream;
 
 import org.apache.camel.EndpointInject;
 import org.apache.camel.Exchange;
@@ -74,8 +75,7 @@ public class BarcodeTestBase extends CamelTestSupport {
     
     private void checkFormat(File file, BarcodeFormat format) throws IOException {
         Reader reader = new MultiFormatReader();
-        BinaryBitmap bitmap = new BinaryBitmap((new HybridBinarizer(
-                new BufferedImageLuminanceSource(ImageIO.read(file)))));
+        BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer(new BufferedImageLuminanceSource(ImageIO.read(file))));
         Result result;
         try {
             result = reader.decode(bitmap);


Mime
View raw message