From 5a534d1146c0450e3a426cd4397096164049bbd0 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Fri, 10 Jul 2009 14:27:06 +0000 Subject: [PATCH] whitespace git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@792961 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/tools/ant/taskdefs/Jar.java | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/Jar.java b/src/main/org/apache/tools/ant/taskdefs/Jar.java index a3e5b49f9..71c6ec364 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Jar.java +++ b/src/main/org/apache/tools/ant/taskdefs/Jar.java @@ -1088,18 +1088,17 @@ public class Jar extends Zip { org.apache.tools.zip.ZipEntry ze = (org.apache.tools.zip.ZipEntry) entries.nextElement(); String name = ze.getName(); - if (ze.isDirectory()) { - dirSet.add(name); - } else if (name.indexOf("/") == -1) { - files.add(name); - } else { - // a file, not in the root - // since the jar may be one without directory - // entries, add the parent dir of this file as - // well. - dirSet.add(name.substring(0, - name.lastIndexOf("/") + 1)); - } + if (ze.isDirectory()) { + dirSet.add(name); + } else if (name.indexOf("/") == -1) { + files.add(name); + } else { + // a file, not in the root + // since the jar may be one without directory + // entries, add the parent dir of this file as + // well. + dirSet.add(name.substring(0, name.lastIndexOf("/") + 1)); + } } dirs.addAll(dirSet); } finally {