From 7529971b89c8bdc6794016c9eb174db86c608a8f Mon Sep 17 00:00:00 2001 From: Jacobus Martinus Kruithof Date: Mon, 24 Apr 2006 07:10:54 +0000 Subject: [PATCH] Whitespace / contants / javadoc git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@396465 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/tools/ant/types/ArchiveFileSet.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/main/org/apache/tools/ant/types/ArchiveFileSet.java b/src/main/org/apache/tools/ant/types/ArchiveFileSet.java index 0ee87ca63..a180f1678 100755 --- a/src/main/org/apache/tools/ant/types/ArchiveFileSet.java +++ b/src/main/org/apache/tools/ant/types/ArchiveFileSet.java @@ -36,6 +36,8 @@ import org.apache.tools.zip.UnixStat; */ public abstract class ArchiveFileSet extends FileSet { + private static final int BASE_OCTAL = 8; + /** * Default value for the dirmode attribute. * @@ -158,6 +160,7 @@ public abstract class ArchiveFileSet extends FileSet { /** * Get the archive file from which entries will be extracted. + * @return the archive in case the archive is a file, null otherwise. */ public File getSrc() { if (src instanceof FileResource) { @@ -165,7 +168,7 @@ public abstract class ArchiveFileSet extends FileSet { } return null; } - + /** * Prepend this prefix to the path for each archive entry. * Prevents both prefix and fullpath from being specified @@ -190,7 +193,7 @@ public abstract class ArchiveFileSet extends FileSet { } return prefix; } - + /** * Set the full pathname of the single entry in this fileset. * Prevents both prefix and fullpath from being specified @@ -215,7 +218,7 @@ public abstract class ArchiveFileSet extends FileSet { } return fullpath; } - + /** * Creates a scanner for this type of archive. */ @@ -300,7 +303,7 @@ public abstract class ArchiveFileSet extends FileSet { * @param octalString a String value */ public void setFileMode(String octalString) { - integerSetFileMode(Integer.parseInt(octalString, 8)); + integerSetFileMode(Integer.parseInt(octalString, BASE_OCTAL)); } /** @@ -348,7 +351,7 @@ public abstract class ArchiveFileSet extends FileSet { * @param octalString a String value */ public void setDirMode(String octalString) { - integerSetDirMode(Integer.parseInt(octalString, 8)); + integerSetDirMode(Integer.parseInt(octalString, BASE_OCTAL)); } /**