ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject [1/4] whitespace
Date Sat, 12 Jul 2014 16:25:39 GMT
Repository: ant
Updated Branches:
  refs/heads/master ba170891d -> 66c2551a5


http://git-wip-us.apache.org/repos/asf/ant/blob/df33426b/src/main/org/apache/tools/ant/types/resources/MappedResource.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/types/resources/MappedResource.java b/src/main/org/apache/tools/ant/types/resources/MappedResource.java
index 8b193c4..339c88b 100644
--- a/src/main/org/apache/tools/ant/types/resources/MappedResource.java
+++ b/src/main/org/apache/tools/ant/types/resources/MappedResource.java
@@ -47,7 +47,7 @@ public class MappedResource extends ResourceDecorator {
      * Maps the name.
      */
     @Override
-	public String getName() {
+    public String getName() {
         String name = getResource().getName();
         if (isReference()) {
             return name;
@@ -61,7 +61,7 @@ public class MappedResource extends ResourceDecorator {
      * @param r reference to set
      */
     @Override
-	public void setRefid(Reference r) {
+    public void setRefid(Reference r) {
         if (mapper != null) {
             throw noChildrenAllowed();
         }
@@ -73,7 +73,7 @@ public class MappedResource extends ResourceDecorator {
      * @param clazz the type to implement
      */
     @Override
-	public <T> T as(Class<T> clazz) {
+    public <T> T as(Class<T> clazz) {
         return FileProvider.class.isAssignableFrom(clazz)
                 ? null : getResource().as(clazz);
     }
@@ -83,7 +83,7 @@ public class MappedResource extends ResourceDecorator {
      * @since Ant 1.8.1
      */
     @Override
-	public int hashCode() {
+    public int hashCode() {
         String n = getName();
         return n == null ? super.hashCode() : n.hashCode();
     }
@@ -94,7 +94,7 @@ public class MappedResource extends ResourceDecorator {
      * @since Ant 1.8.1
      */
     @Override
-	public boolean equals(Object other) {
+    public boolean equals(Object other) {
         if (other == null || !other.getClass().equals(getClass())) {
             return false;
         }
@@ -106,7 +106,7 @@ public class MappedResource extends ResourceDecorator {
     }
 
     @Override
-	public String toString() {
+    public String toString() {
         if (isReference()) {
             return getCheckedRef().toString();
         }

http://git-wip-us.apache.org/repos/asf/ant/blob/df33426b/src/main/org/apache/tools/ant/types/resources/MultiRootFileSet.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/types/resources/MultiRootFileSet.java b/src/main/org/apache/tools/ant/types/resources/MultiRootFileSet.java
index 85c1d45..bc8635c 100644
--- a/src/main/org/apache/tools/ant/types/resources/MultiRootFileSet.java
+++ b/src/main/org/apache/tools/ant/types/resources/MultiRootFileSet.java
@@ -44,7 +44,7 @@ public class MultiRootFileSet extends AbstractFileSet
     private Union union;
 
     @Override
-	public void setDir(final File dir) {
+    public void setDir(final File dir) {
         throw new BuildException(getDataTypeName()
                                  + " doesn't support the dir attribute");
     }
@@ -98,7 +98,7 @@ public class MultiRootFileSet extends AbstractFileSet
     }
 
     @Override
-	public void setRefid(final Reference r) {
+    public void setRefid(final Reference r) {
         if (!baseDirs.isEmpty()) {
             throw tooManyAttributes();
         }
@@ -111,7 +111,7 @@ public class MultiRootFileSet extends AbstractFileSet
      * @return the cloned MultiRootFileSet.
      */
     @Override
-	public Object clone() {
+    public Object clone() {
         if (isReference()) {
             return ((MultiRootFileSet) getRef(getProject())).clone();
         } else {
@@ -126,7 +126,7 @@ public class MultiRootFileSet extends AbstractFileSet
      * Fulfill the ResourceCollection contract.
      * @return an Iterator of Resources.
      */
-	public Iterator<Resource> iterator() {
+    public Iterator<Resource> iterator() {
         if (isReference()) {
             return ((MultiRootFileSet) getRef(getProject())).iterator();
         }
@@ -137,7 +137,7 @@ public class MultiRootFileSet extends AbstractFileSet
      * Fulfill the ResourceCollection contract.
      * @return number of elements as int.
      */
-	public int size() {
+    public int size() {
         if (isReference()) {
             return ((MultiRootFileSet) getRef(getProject())).size();
         }
@@ -148,7 +148,7 @@ public class MultiRootFileSet extends AbstractFileSet
      * Always returns true.
      * @return true indicating that all elements will be FileResources.
      */
-	public boolean isFilesystemOnly() {
+    public boolean isFilesystemOnly() {
         return true;
     }
 
@@ -158,7 +158,7 @@ public class MultiRootFileSet extends AbstractFileSet
      * @return a <code>String</code> of included directories.
      */
     @Override
-	public String toString() {
+    public String toString() {
         if (isReference()) {
             return ((MultiRootFileSet) getRef(getProject())).toString();
         }
@@ -201,11 +201,11 @@ public class MultiRootFileSet extends AbstractFileSet
             setDir(dir);
         }
 
-		public boolean isFilesystemOnly() {
+        public boolean isFilesystemOnly() {
             return true;
         }
 
-		public Iterator<Resource> iterator() {
+        public Iterator<Resource> iterator() {
             final DirectoryScanner ds = getDirectoryScanner(getProject());
             String[] names = type == SetType.file
                 ? ds.getIncludedFiles()
@@ -221,7 +221,7 @@ public class MultiRootFileSet extends AbstractFileSet
                                             names);
         }
 
-		public int size() {
+        public int size() {
             final DirectoryScanner ds = getDirectoryScanner(getProject());
             int count = type == SetType.file
                 ? ds.getIncludedFilesCount()

http://git-wip-us.apache.org/repos/asf/ant/blob/df33426b/src/main/org/apache/tools/ant/types/resources/selectors/Type.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/types/resources/selectors/Type.java b/src/main/org/apache/tools/ant/types/resources/selectors/Type.java
index 3a07e8d..65d4a57 100644
--- a/src/main/org/apache/tools/ant/types/resources/selectors/Type.java
+++ b/src/main/org/apache/tools/ant/types/resources/selectors/Type.java
@@ -65,7 +65,7 @@ public class Type implements ResourceSelector {
          * @return a String array.
          */
         @Override
-		public String[] getValues() {
+        public String[] getValues() {
             return VALUES;
         }
     }
@@ -99,7 +99,7 @@ public class Type implements ResourceSelector {
      * @param r the Resource to check.
      * @return whether the Resource was selected.
      */
-	public boolean isSelected(final Resource r) {
+    public boolean isSelected(final Resource r) {
         if (type == null) {
             throw new BuildException("The type attribute is required.");
         }

http://git-wip-us.apache.org/repos/asf/ant/blob/df33426b/src/main/org/apache/tools/ant/types/selectors/MappingSelector.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/types/selectors/MappingSelector.java b/src/main/org/apache/tools/ant/types/selectors/MappingSelector.java
index 85e478c..1a27494 100644
--- a/src/main/org/apache/tools/ant/types/selectors/MappingSelector.java
+++ b/src/main/org/apache/tools/ant/types/selectors/MappingSelector.java
@@ -94,7 +94,7 @@ public abstract class MappingSelector extends BaseSelector {
      * means that the dest attribute has been set and we have a mapper.
      */
     @Override
-	public void verifySettings() {
+    public void verifySettings() {
         if (targetdir == null) {
             setError("The targetdir attribute is required.");
         }
@@ -120,7 +120,7 @@ public abstract class MappingSelector extends BaseSelector {
      * @return whether the file should be selected or not
      */
     @Override
-	public boolean isSelected(File basedir, String filename, File file) {
+    public boolean isSelected(File basedir, String filename, File file) {
 
         // throw BuildException on error
         validate();

http://git-wip-us.apache.org/repos/asf/ant/blob/df33426b/src/main/org/apache/tools/ant/types/selectors/PresentSelector.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/types/selectors/PresentSelector.java b/src/main/org/apache/tools/ant/types/selectors/PresentSelector.java
index 9887dca..1c0c000 100644
--- a/src/main/org/apache/tools/ant/types/selectors/PresentSelector.java
+++ b/src/main/org/apache/tools/ant/types/selectors/PresentSelector.java
@@ -52,7 +52,7 @@ public class PresentSelector extends BaseSelector {
      * @return a string describing this object
      */
     @Override
-	public String toString() {
+    public String toString() {
         final StringBuilder buf = new StringBuilder("{presentselector targetdir: ");
         if (targetdir == null) {
             buf.append("NOT YET SET");
@@ -133,7 +133,7 @@ public class PresentSelector extends BaseSelector {
      * means that the targetdir attribute has been set and we have a mapper.
      */
     @Override
-	public void verifySettings() {
+    public void verifySettings() {
         if (targetdir == null) {
             setError("The targetdir attribute is required.");
         }
@@ -159,7 +159,7 @@ public class PresentSelector extends BaseSelector {
      * @return whether the file should be selected or not
      */
     @Override
-	public boolean isSelected(final File basedir, final String filename, final File file) {
+    public boolean isSelected(final File basedir, final String filename, final File file)
{
 
         // throw BuildException on error
         validate();
@@ -190,7 +190,7 @@ public class PresentSelector extends BaseSelector {
          * @return the values as an array of strings
          */
         @Override
-		public String[] getValues() {
+        public String[] getValues() {
             return new String[] {"srconly", "both"};
         }
     }

http://git-wip-us.apache.org/repos/asf/ant/blob/df33426b/src/main/org/apache/tools/ant/types/selectors/TokenizedPath.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/types/selectors/TokenizedPath.java b/src/main/org/apache/tools/ant/types/selectors/TokenizedPath.java
index cdc3790..a712759 100644
--- a/src/main/org/apache/tools/ant/types/selectors/TokenizedPath.java
+++ b/src/main/org/apache/tools/ant/types/selectors/TokenizedPath.java
@@ -87,7 +87,7 @@ public class TokenizedPath {
      * @return The original path String
      */
     @Override
-	public String toString() {
+    public String toString() {
         return path;
     }
 
@@ -162,13 +162,13 @@ public class TokenizedPath {
      * true if the original paths are equal.
      */
     @Override
-	public boolean equals(Object o) {
+    public boolean equals(Object o) {
         return o instanceof TokenizedPath
             && path.equals(((TokenizedPath) o).path);
     }
 
     @Override
-	public int hashCode() {
+    public int hashCode() {
         return path.hashCode();
     }
 

http://git-wip-us.apache.org/repos/asf/ant/blob/df33426b/src/main/org/apache/tools/ant/util/LayoutPreservingProperties.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/util/LayoutPreservingProperties.java b/src/main/org/apache/tools/ant/util/LayoutPreservingProperties.java
index 9308292..ea0ea93 100644
--- a/src/main/org/apache/tools/ant/util/LayoutPreservingProperties.java
+++ b/src/main/org/apache/tools/ant/util/LayoutPreservingProperties.java
@@ -139,7 +139,7 @@ public class LayoutPreservingProperties extends Properties {
     }
 
     @Override
-	public void load(final InputStream inStream) throws IOException {
+    public void load(final InputStream inStream) throws IOException {
         final String s = readLines(inStream);
         final byte[] ba = s.getBytes(ResourceUtils.ISO_8859_1);
         final ByteArrayInputStream bais = new ByteArrayInputStream(ba);
@@ -147,7 +147,7 @@ public class LayoutPreservingProperties extends Properties {
     }
 
     @Override
-	public Object put(final Object key, final Object value) throws NullPointerException {
+    public Object put(final Object key, final Object value) throws NullPointerException {
         final Object obj = super.put(key, value);
         // the above call will have failed if key or value are null
         innerSetProperty(key.toString(), value.toString());
@@ -155,7 +155,7 @@ public class LayoutPreservingProperties extends Properties {
     }
 
     @Override
-	public Object setProperty(final String key, final String value)
+    public Object setProperty(final String key, final String value)
         throws NullPointerException {
         final Object obj = super.setProperty(key, value);
         // the above call will have failed if key or value are null
@@ -188,14 +188,14 @@ public class LayoutPreservingProperties extends Properties {
     }
 
     @Override
-	public void clear() {
+    public void clear() {
         super.clear();
         keyedPairLines.clear();
         logicalLines.clear();
     }
 
     @Override
-	public Object remove(final Object key) {
+    public Object remove(final Object key) {
         final Object obj = super.remove(key);
         final Integer i = (Integer) keyedPairLines.remove(key);
         if (null != i) {
@@ -208,7 +208,7 @@ public class LayoutPreservingProperties extends Properties {
     }
 
     @Override
-	public Object clone() {
+    public Object clone() {
         final LayoutPreservingProperties dolly =
             (LayoutPreservingProperties) super.clone();
         dolly.keyedPairLines = (HashMap) this.keyedPairLines.clone();
@@ -256,7 +256,7 @@ public class LayoutPreservingProperties extends Properties {
     }
 
     @Override
-	public void store(final OutputStream out, final String header) throws IOException {
+    public void store(final OutputStream out, final String header) throws IOException {
         final OutputStreamWriter osw = new OutputStreamWriter(out, ResourceUtils.ISO_8859_1);
 
         int skipLines = 0;
@@ -630,7 +630,7 @@ public class LayoutPreservingProperties extends Properties {
         }
 
         @Override
-		public String toString() {
+        public String toString() {
             return text;
         }
     }
@@ -694,7 +694,7 @@ public class LayoutPreservingProperties extends Properties {
         }
 
         @Override
-		public Object clone() {
+        public Object clone() {
             Object dolly = null;
             try {
                 dolly = super.clone();

http://git-wip-us.apache.org/repos/asf/ant/blob/df33426b/src/main/org/apache/tools/ant/util/LineOrientedOutputStream.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/util/LineOrientedOutputStream.java b/src/main/org/apache/tools/ant/util/LineOrientedOutputStream.java
index 7630f59..1d081bf 100644
--- a/src/main/org/apache/tools/ant/util/LineOrientedOutputStream.java
+++ b/src/main/org/apache/tools/ant/util/LineOrientedOutputStream.java
@@ -51,7 +51,7 @@ public abstract class LineOrientedOutputStream extends OutputStream {
      * @throws IOException if there is an error.
      */
     @Override
-	public final void write(int cc) throws IOException {
+    public final void write(int cc) throws IOException {
         final byte c = (byte) cc;
         if ((c == LF) || (c == CR)) {
             if (!skip) {
@@ -68,7 +68,7 @@ public abstract class LineOrientedOutputStream extends OutputStream {
      * @throws IOException if there is an error.
      */
     @Override
-	public void flush() throws IOException {
+    public void flush() throws IOException {
     }
 
     /**
@@ -114,7 +114,7 @@ public abstract class LineOrientedOutputStream extends OutputStream {
      * @throws IOException if there is an error.
      */
     @Override
-	public void close() throws IOException {
+    public void close() throws IOException {
         if (buffer.size() > 0) {
             processBuffer();
         }
@@ -131,7 +131,7 @@ public abstract class LineOrientedOutputStream extends OutputStream {
      * @throws IOException if the data cannot be written into the stream.
      */
     @Override
-	public final void write(byte[] b, int off, int len) throws IOException {
+    public final void write(byte[] b, int off, int len) throws IOException {
         // find the line breaks and pass other chars through in blocks
         int offset = off;
         int blockStartOffset = offset;

http://git-wip-us.apache.org/repos/asf/ant/blob/df33426b/src/main/org/apache/tools/ant/util/LineOrientedOutputStreamRedirector.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/util/LineOrientedOutputStreamRedirector.java b/src/main/org/apache/tools/ant/util/LineOrientedOutputStreamRedirector.java
index a4e6d8e..48bad5c 100644
--- a/src/main/org/apache/tools/ant/util/LineOrientedOutputStreamRedirector.java
+++ b/src/main/org/apache/tools/ant/util/LineOrientedOutputStreamRedirector.java
@@ -44,24 +44,24 @@ public class LineOrientedOutputStreamRedirector
     }
 
     @Override
-	protected void processLine(byte[] b) throws IOException {
+    protected void processLine(byte[] b) throws IOException {
         stream.write(b);
         stream.write(EOL);
     }
 
     @Override
-	protected void processLine(String line) throws IOException {
+    protected void processLine(String line) throws IOException {
         stream.write((line + System.getProperty("line.separator")).getBytes());
     }
 
     @Override
-	public void close() throws IOException {
+    public void close() throws IOException {
         super.close();
         stream.close();
     }
 
     @Override
-	public void flush() throws IOException {
+    public void flush() throws IOException {
         super.flush();
         stream.flush();
     }

http://git-wip-us.apache.org/repos/asf/ant/blob/df33426b/src/main/org/apache/tools/ant/util/ProcessUtil.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/util/ProcessUtil.java b/src/main/org/apache/tools/ant/util/ProcessUtil.java
index ee13006..f6e71b1 100644
--- a/src/main/org/apache/tools/ant/util/ProcessUtil.java
+++ b/src/main/org/apache/tools/ant/util/ProcessUtil.java
@@ -25,10 +25,10 @@ import java.lang.management.ManagementFactory;
  */
 public class ProcessUtil {
 
-	private ProcessUtil() {
-	}
+    private ProcessUtil() {
+    }
 
-	/**
+    /**
      * provide id of the current process
      * @param fallback
      * @return current process id
@@ -57,9 +57,9 @@ public class ProcessUtil {
     public static void main(String [] args) {
         System.out.println(getProcessId("<PID>"));
         try {
-        	Thread.sleep(120000);
+            Thread.sleep(120000);
         } catch (Exception exc) {
-        	// ignore
+            // ignore
         }
     }
 }

http://git-wip-us.apache.org/repos/asf/ant/blob/df33426b/src/main/org/apache/tools/ant/util/ResourceUtils.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/util/ResourceUtils.java b/src/main/org/apache/tools/ant/util/ResourceUtils.java
index 84f4831..0c1ce69 100644
--- a/src/main/org/apache/tools/ant/util/ResourceUtils.java
+++ b/src/main/org/apache/tools/ant/util/ResourceUtils.java
@@ -145,10 +145,10 @@ public class ResourceUtils {
         logFuture(logTo, source, granularity);
         final ResourceSelectorProvider p =
             new ResourceSelectorProvider() {
-				public ResourceSelector
+                public ResourceSelector
                     getTargetSelectorForSource(final Resource sr) {
                     return new ResourceSelector() {
-						public boolean isSelected(final Resource target) {
+                        public boolean isSelected(final Resource target) {
                             /* Extra I/O, probably wasted:
                                if (target.isDirectory()) {
                                return false;
@@ -842,9 +842,9 @@ public class ResourceUtils {
      * @since Ant 1.9.4
      */
     public static class ReadOnlyTargetFileException extends IOException {
-		private static final long serialVersionUID = 1L;
+        private static final long serialVersionUID = 1L;
 
-		public ReadOnlyTargetFileException(final File destFile) {
+        public ReadOnlyTargetFileException(final File destFile) {
             super("can't write to read-only destination file " + destFile);
         }
     }

http://git-wip-us.apache.org/repos/asf/ant/blob/df33426b/src/main/org/apache/tools/ant/util/SymbolicLinkUtils.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/util/SymbolicLinkUtils.java b/src/main/org/apache/tools/ant/util/SymbolicLinkUtils.java
index e8df272..3bc9918 100644
--- a/src/main/org/apache/tools/ant/util/SymbolicLinkUtils.java
+++ b/src/main/org/apache/tools/ant/util/SymbolicLinkUtils.java
@@ -177,7 +177,7 @@ public class SymbolicLinkUtils {
         if (!f.exists()) {
             final String localName = f.getName();
             final String[] c = parent.list(new FilenameFilter() {
-					public boolean accept(final File d, final String n) {
+                    public boolean accept(final File d, final String n) {
                         return localName.equals(n);
                     }
                 });
@@ -293,4 +293,4 @@ public class SymbolicLinkUtils {
         }
     }
 
-}
\ No newline at end of file
+}

http://git-wip-us.apache.org/repos/asf/ant/blob/df33426b/src/main/org/apache/tools/ant/util/UnicodeUtil.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/util/UnicodeUtil.java b/src/main/org/apache/tools/ant/util/UnicodeUtil.java
index bb64f73..d3e5eec 100644
--- a/src/main/org/apache/tools/ant/util/UnicodeUtil.java
+++ b/src/main/org/apache/tools/ant/util/UnicodeUtil.java
@@ -24,23 +24,23 @@ package org.apache.tools.ant.util;
  */
 public class UnicodeUtil {
 
-	private UnicodeUtil() {
-	}
+    private UnicodeUtil() {
+    }
 
-	/**
-	 * returns the unicode representation of a char without the leading backslash
-	 * @param ch
-	 * @return unicode representation of a char for property files
-	 */
-   public static StringBuffer EscapeUnicode(char ch) {
-       StringBuffer unicodeBuf = new StringBuffer("u0000");
-       String s = Integer.toHexString(ch);
-       //replace the last 0s by the chars contained in s
-       for (int i = 0; i < s.length(); i++) {
-           unicodeBuf.setCharAt(unicodeBuf.length()
-                                - s.length() + i,
-                                s.charAt(i));
-       }
-       return unicodeBuf;
-   }
+    /**
+     * returns the unicode representation of a char without the leading backslash
+     * @param ch
+     * @return unicode representation of a char for property files
+     */
+    public static StringBuffer EscapeUnicode(char ch) {
+        StringBuffer unicodeBuf = new StringBuffer("u0000");
+        String s = Integer.toHexString(ch);
+        //replace the last 0s by the chars contained in s
+        for (int i = 0; i < s.length(); i++) {
+            unicodeBuf.setCharAt(unicodeBuf.length()
+                                 - s.length() + i,
+                                 s.charAt(i));
+        }
+        return unicodeBuf;
+    }
 }

http://git-wip-us.apache.org/repos/asf/ant/blob/df33426b/src/main/org/apache/tools/ant/util/XmlConstants.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/util/XmlConstants.java b/src/main/org/apache/tools/ant/util/XmlConstants.java
index 2070894..d8eaa02 100644
--- a/src/main/org/apache/tools/ant/util/XmlConstants.java
+++ b/src/main/org/apache/tools/ant/util/XmlConstants.java
@@ -28,8 +28,8 @@ package org.apache.tools.ant.util;
 
 public class XmlConstants {
 
-	private XmlConstants() {
-	}
+    private XmlConstants() {
+    }
 
     /** property for location of xml schema */
     public static final String PROPERTY_SCHEMA_LOCATION =

http://git-wip-us.apache.org/repos/asf/ant/blob/df33426b/src/main/org/apache/tools/tar/TarEntry.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/tar/TarEntry.java b/src/main/org/apache/tools/tar/TarEntry.java
index 5bcb0dc..0bfc926 100644
--- a/src/main/org/apache/tools/tar/TarEntry.java
+++ b/src/main/org/apache/tools/tar/TarEntry.java
@@ -912,7 +912,7 @@ public class TarEntry implements TarConstants {
         int offset = 0;
 
         name = oldStyle ? TarUtils.parseName(header, offset, NAMELEN)
-             : TarUtils.parseName(header, offset, NAMELEN, encoding);
+            : TarUtils.parseName(header, offset, NAMELEN, encoding);
         offset += NAMELEN;
         mode = (int) TarUtils.parseOctalOrBinary(header, offset, MODELEN);
         offset += MODELEN;

http://git-wip-us.apache.org/repos/asf/ant/blob/df33426b/src/main/org/apache/tools/tar/TarOutputStream.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/tar/TarOutputStream.java b/src/main/org/apache/tools/tar/TarOutputStream.java
index 6babde7..03c8769 100644
--- a/src/main/org/apache/tools/tar/TarOutputStream.java
+++ b/src/main/org/apache/tools/tar/TarOutputStream.java
@@ -378,7 +378,7 @@ public class TarOutputStream extends FilterOutputStream {
      * @throws IOException on error
      */
     @Override
-	public void write(byte[] wBuf) throws IOException {
+    public void write(byte[] wBuf) throws IOException {
         write(wBuf, 0, wBuf.length);
     }
 

http://git-wip-us.apache.org/repos/asf/ant/blob/df33426b/src/main/org/apache/tools/tar/TarUtils.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/tar/TarUtils.java b/src/main/org/apache/tools/tar/TarUtils.java
index 74be935..12bd1da 100644
--- a/src/main/org/apache/tools/tar/TarUtils.java
+++ b/src/main/org/apache/tools/tar/TarUtils.java
@@ -46,9 +46,9 @@ public class TarUtils {
      * Encapsulates the algorithms used up to Ant 1.8 as ZipEncoding.
      */
     static final ZipEncoding FALLBACK_ENCODING = new ZipEncoding() {
-			public boolean canEncode(final String name) { return true; }
+            public boolean canEncode(final String name) { return true; }
 
-			public ByteBuffer encode(final String name) {
+            public ByteBuffer encode(final String name) {
                 final int length = name.length();
                 final byte[] buf = new byte[length];
 
@@ -59,7 +59,7 @@ public class TarUtils {
                 return ByteBuffer.wrap(buf);
             }
 
-			public String decode(final byte[] buffer) {
+            public String decode(final byte[] buffer) {
                 final int length = buffer.length;
                 final StringBuilder result = new StringBuilder(length);
 

http://git-wip-us.apache.org/repos/asf/ant/blob/df33426b/src/main/org/apache/tools/zip/AbstractUnicodeExtraField.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/zip/AbstractUnicodeExtraField.java b/src/main/org/apache/tools/zip/AbstractUnicodeExtraField.java
index 7817119..1014787 100644
--- a/src/main/org/apache/tools/zip/AbstractUnicodeExtraField.java
+++ b/src/main/org/apache/tools/zip/AbstractUnicodeExtraField.java
@@ -128,7 +128,7 @@ public abstract class AbstractUnicodeExtraField implements ZipExtraField
{
     }
 
     /** {@inheritDoc} */
-	public byte[] getCentralDirectoryData() {
+    public byte[] getCentralDirectoryData() {
         if (data == null) {
             this.assembleData();
         }
@@ -141,7 +141,7 @@ public abstract class AbstractUnicodeExtraField implements ZipExtraField
{
     }
 
     /** {@inheritDoc} */
-	public ZipShort getCentralDirectoryLength() {
+    public ZipShort getCentralDirectoryLength() {
         if (data == null) {
             assembleData();
         }
@@ -149,17 +149,17 @@ public abstract class AbstractUnicodeExtraField implements ZipExtraField
{
     }
 
     /** {@inheritDoc} */
-	public byte[] getLocalFileDataData() {
+    public byte[] getLocalFileDataData() {
         return getCentralDirectoryData();
     }
 
     /** {@inheritDoc} */
-	public ZipShort getLocalFileDataLength() {
+    public ZipShort getLocalFileDataLength() {
         return getCentralDirectoryLength();
     }
 
     /** {@inheritDoc} */
-	public void parseFromLocalFileData(final byte[] buffer, final int offset, final int length)
+    public void parseFromLocalFileData(final byte[] buffer, final int offset, final int length)
         throws ZipException {
 
         if (length < 5) {

http://git-wip-us.apache.org/repos/asf/ant/blob/df33426b/src/main/org/apache/tools/zip/FallbackZipEncoding.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/zip/FallbackZipEncoding.java b/src/main/org/apache/tools/zip/FallbackZipEncoding.java
index 1582004..3edbb8e 100644
--- a/src/main/org/apache/tools/zip/FallbackZipEncoding.java
+++ b/src/main/org/apache/tools/zip/FallbackZipEncoding.java
@@ -64,7 +64,7 @@ class FallbackZipEncoding implements ZipEncoding {
      * @see
      * org.apache.tools.zip.ZipEncoding#canEncode(java.lang.String)
      */
-	public boolean canEncode(final String name) {
+    public boolean canEncode(final String name) {
         return true;
     }
 
@@ -72,7 +72,7 @@ class FallbackZipEncoding implements ZipEncoding {
      * @see
      * org.apache.tools.zip.ZipEncoding#encode(java.lang.String)
      */
-	public ByteBuffer encode(final String name) throws IOException {
+    public ByteBuffer encode(final String name) throws IOException {
         if (this.charset == null) { // i.e. use default charset, see no-args constructor
             return ByteBuffer.wrap(name.getBytes());
         } else {
@@ -84,7 +84,7 @@ class FallbackZipEncoding implements ZipEncoding {
      * @see
      * org.apache.tools.zip.ZipEncoding#decode(byte[])
      */
-	public String decode(final byte[] data) throws IOException {
+    public String decode(final byte[] data) throws IOException {
         if (this.charset == null) { // i.e. use default charset, see no-args constructor
             return new String(data);
         } else {

http://git-wip-us.apache.org/repos/asf/ant/blob/df33426b/src/main/org/apache/tools/zip/NioZipEncoding.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/zip/NioZipEncoding.java b/src/main/org/apache/tools/zip/NioZipEncoding.java
index 5fc0669..63d33ff 100644
--- a/src/main/org/apache/tools/zip/NioZipEncoding.java
+++ b/src/main/org/apache/tools/zip/NioZipEncoding.java
@@ -54,7 +54,7 @@ class NioZipEncoding implements ZipEncoding {
      * @see
      * org.apache.tools.zip.ZipEncoding#canEncode(java.lang.String)
      */
-	public boolean canEncode(final String name) {
+    public boolean canEncode(final String name) {
         final CharsetEncoder enc = this.charset.newEncoder();
         enc.onMalformedInput(CodingErrorAction.REPORT);
         enc.onUnmappableCharacter(CodingErrorAction.REPORT);
@@ -66,7 +66,7 @@ class NioZipEncoding implements ZipEncoding {
      * @see
      * org.apache.tools.zip.ZipEncoding#encode(java.lang.String)
      */
-	public ByteBuffer encode(final String name) {
+    public ByteBuffer encode(final String name) {
         final CharsetEncoder enc = this.charset.newEncoder();
 
         enc.onMalformedInput(CodingErrorAction.REPORT);
@@ -113,7 +113,7 @@ class NioZipEncoding implements ZipEncoding {
      * @see
      * org.apache.tools.zip.ZipEncoding#decode(byte[])
      */
-	public String decode(final byte[] data) throws IOException {
+    public String decode(final byte[] data) throws IOException {
         return this.charset.newDecoder()
             .onMalformedInput(CodingErrorAction.REPORT)
             .onUnmappableCharacter(CodingErrorAction.REPORT)

http://git-wip-us.apache.org/repos/asf/ant/blob/df33426b/src/main/org/apache/tools/zip/Simple8BitZipEncoding.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/zip/Simple8BitZipEncoding.java b/src/main/org/apache/tools/zip/Simple8BitZipEncoding.java
index 532b39a..57a838c 100644
--- a/src/main/org/apache/tools/zip/Simple8BitZipEncoding.java
+++ b/src/main/org/apache/tools/zip/Simple8BitZipEncoding.java
@@ -58,7 +58,7 @@ class Simple8BitZipEncoding implements ZipEncoding {
             this.unicode = unicode;
         }
 
-		public int compareTo(final Simple8BitChar a) {
+        public int compareTo(final Simple8BitChar a) {
             return this.unicode - a.unicode;
         }
 
@@ -215,7 +215,7 @@ class Simple8BitZipEncoding implements ZipEncoding {
      * @see
      * org.apache.tools.zip.ZipEncoding#canEncode(java.lang.String)
      */
-	public boolean canEncode(final String name) {
+    public boolean canEncode(final String name) {
 
         for (int i=0;i<name.length();++i) {
 
@@ -233,7 +233,7 @@ class Simple8BitZipEncoding implements ZipEncoding {
      * @see
      * org.apache.tools.zip.ZipEncoding#encode(java.lang.String)
      */
-	public ByteBuffer encode(final String name) {
+    public ByteBuffer encode(final String name) {
         ByteBuffer out = ByteBuffer.allocate(name.length()
                                              + 6 + (name.length() + 1) / 2);
 
@@ -260,7 +260,7 @@ class Simple8BitZipEncoding implements ZipEncoding {
      * @see
      * org.apache.tools.zip.ZipEncoding#decode(byte[])
      */
-	public String decode(final byte[] data) throws IOException {
+    public String decode(final byte[] data) throws IOException {
         final char [] ret = new char[data.length];
 
         for (int i=0;i<data.length;++i) {

http://git-wip-us.apache.org/repos/asf/ant/blob/df33426b/src/main/org/apache/tools/zip/UnicodeCommentExtraField.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/zip/UnicodeCommentExtraField.java b/src/main/org/apache/tools/zip/UnicodeCommentExtraField.java
index 28c16c1..51550fe 100644
--- a/src/main/org/apache/tools/zip/UnicodeCommentExtraField.java
+++ b/src/main/org/apache/tools/zip/UnicodeCommentExtraField.java
@@ -63,7 +63,7 @@ public class UnicodeCommentExtraField extends AbstractUnicodeExtraField
{
     }
 
     /** {@inheritDoc} */
-	public ZipShort getHeaderId() {
+    public ZipShort getHeaderId() {
         return UCOM_ID;
     }
 

http://git-wip-us.apache.org/repos/asf/ant/blob/df33426b/src/main/org/apache/tools/zip/UnicodePathExtraField.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/zip/UnicodePathExtraField.java b/src/main/org/apache/tools/zip/UnicodePathExtraField.java
index cd5af6c..8b045a1 100644
--- a/src/main/org/apache/tools/zip/UnicodePathExtraField.java
+++ b/src/main/org/apache/tools/zip/UnicodePathExtraField.java
@@ -61,7 +61,7 @@ public class UnicodePathExtraField extends AbstractUnicodeExtraField {
     }
 
     /** {@inheritDoc} */
-	public ZipShort getHeaderId() {
+    public ZipShort getHeaderId() {
         return UPATH_ID;
     }
 }

http://git-wip-us.apache.org/repos/asf/ant/blob/df33426b/src/main/org/apache/tools/zip/ZipEntry.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/zip/ZipEntry.java b/src/main/org/apache/tools/zip/ZipEntry.java
index bbcf1ae..375a7ac 100644
--- a/src/main/org/apache/tools/zip/ZipEntry.java
+++ b/src/main/org/apache/tools/zip/ZipEntry.java
@@ -507,7 +507,7 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable
{
      * @since 1.2
      */
     @Deprecated
-	public void setComprSize(final long size) {
+    public void setComprSize(final long size) {
         setCompressedSize(size);
     }
 

http://git-wip-us.apache.org/repos/asf/ant/blob/df33426b/src/main/org/apache/tools/zip/ZipFile.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/zip/ZipFile.java b/src/main/org/apache/tools/zip/ZipFile.java
index e5352d7..0771c1f 100644
--- a/src/main/org/apache/tools/zip/ZipFile.java
+++ b/src/main/org/apache/tools/zip/ZipFile.java
@@ -992,7 +992,7 @@ public class ZipFile {
      */
     private final Comparator<ZipEntry> OFFSET_COMPARATOR =
         new Comparator<ZipEntry>() {
-		public int compare(final ZipEntry e1, final ZipEntry e2) {
+        public int compare(final ZipEntry e1, final ZipEntry e2) {
             if (e1 == e2) {
                 return 0;
             }

http://git-wip-us.apache.org/repos/asf/ant/blob/df33426b/src/main/org/apache/tools/zip/ZipOutputStream.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/zip/ZipOutputStream.java b/src/main/org/apache/tools/zip/ZipOutputStream.java
index 2ac61c5..40d06b8 100644
--- a/src/main/org/apache/tools/zip/ZipOutputStream.java
+++ b/src/main/org/apache/tools/zip/ZipOutputStream.java
@@ -1252,7 +1252,7 @@ public class ZipOutputStream extends FilterOutputStream {
      * @deprecated use ZipUtil#toDosTime
      */
     @Deprecated
-	protected static ZipLong toDosTime(Date time) {
+    protected static ZipLong toDosTime(Date time) {
         return ZipUtil.toDosTime(time);
     }
 
@@ -1266,7 +1266,7 @@ public class ZipOutputStream extends FilterOutputStream {
      * @deprecated use ZipUtil#toDosTime
      */
     @Deprecated
-	protected static byte[] toDosTime(long t) {
+    protected static byte[] toDosTime(long t) {
         return ZipUtil.toDosTime(t);
     }
 
@@ -1399,7 +1399,7 @@ public class ZipOutputStream extends FilterOutputStream {
      * @deprecated use ZipUtil#adjustToLong
      */
     @Deprecated
-	protected static long adjustToLong(int i) {
+    protected static long adjustToLong(int i) {
         return ZipUtil.adjustToLong(i);
     }
 


Mime
View raw message