camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject [1/5] git commit: CAMEL-7866 Fixed the CS errors
Date Sun, 28 Sep 2014 08:32:20 GMT
Repository: camel
Updated Branches:
  refs/heads/master 4f7bda395 -> c49c7c600


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/74786826
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/74786826
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/74786826

Branch: refs/heads/master
Commit: 74786826eb41d15aa7b41742da988caf37dc4922
Parents: 9ba2dc6
Author: Willem Jiang <willem.jiang@gmail.com>
Authored: Sun Sep 28 16:23:10 2014 +0800
Committer: Willem Jiang <willem.jiang@gmail.com>
Committed: Sun Sep 28 16:31:52 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/74786826/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