camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmuel...@apache.org
Subject git commit: fixed some CS errors
Date Mon, 23 Jun 2014 10:37:10 GMT
Repository: camel
Updated Branches:
  refs/heads/master ecd2a6a51 -> 042e32468


fixed some CS errors


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

Branch: refs/heads/master
Commit: 042e32468179f6448f731a4008910aacdbb32660
Parents: ecd2a6a
Author: cmueller <cmueller@apache.org>
Authored: Mon Jun 23 12:36:59 2014 +0200
Committer: cmueller <cmueller@apache.org>
Committed: Mon Jun 23 12:36:59 2014 +0200

----------------------------------------------------------------------
 .../camel/dataformat/zipfile/ZipIterator.java   | 22 +++++++++++---------
 1 file changed, 12 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/042e3246/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/ZipIterator.java
----------------------------------------------------------------------
diff --git a/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/ZipIterator.java
b/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/ZipIterator.java
index 5900d66..6366f4c 100644
--- a/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/ZipIterator.java
+++ b/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/ZipIterator.java
@@ -122,16 +122,18 @@ class ZipIterator implements Iterator<Message> {
             zipInputStream = null;
         }
     }
-    
-	private ZipEntry getNextEntry() throws IOException {
-		ZipEntry entry = null;
-		
-		while ((entry = zipInputStream.getNextEntry()) != null)
-			if (!entry.isDirectory())
-				return entry;
-		
-		return null;
-	}
+
+    private ZipEntry getNextEntry() throws IOException {
+        ZipEntry entry = null;
+
+        while ((entry = zipInputStream.getNextEntry()) != null) {
+            if (!entry.isDirectory()) {
+                return entry;
+            }
+        }
+
+        return null;
+    }
 
     @Override
     public void remove() {


Mime
View raw message