You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by cm...@apache.org on 2014/06/23 12:37:10 UTC
git commit: fixed some CS errors
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 <cm...@apache.org>
Authored: Mon Jun 23 12:36:59 2014 +0200
Committer: cmueller <cm...@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() {