Repository: commons-compress
Updated Branches:
  refs/heads/master 2e74d637f -> d9d5ce4a0


mention drive letters wherever leading slashes are mentioned


Project: http://git-wip-us.apache.org/repos/asf/commons-compress/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-compress/commit/d9d5ce4a
Tree: http://git-wip-us.apache.org/repos/asf/commons-compress/tree/d9d5ce4a
Diff: http://git-wip-us.apache.org/repos/asf/commons-compress/diff/d9d5ce4a

Branch: refs/heads/master
Commit: d9d5ce4a0ad9ca2af05120ecd647bc75965a3519
Parents: 2e74d63
Author: Stefan Bodewig <bode...@apache.org>
Authored: Mon Jan 29 10:37:55 2018 +0100
Committer: Stefan Bodewig <bode...@apache.org>
Committed: Mon Jan 29 10:37:55 2018 +0100

----------------------------------------------------------------------
 .../compress/archivers/tar/TarArchiveEntry.java        | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-compress/blob/d9d5ce4a/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java
----------------------------------------------------------------------
diff --git 
a/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java 
b/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java
index 6ec9da5..2989eff 100644
--- 
a/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java
+++ 
b/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java
@@ -149,7 +149,7 @@ public class TarArchiveEntry implements ArchiveEntry, 
TarConstants {
     /** The entry's name. */
     private String name = "";
 
-    /** Whether to enforce leading slashes on the name */
+    /** Whether to allow leading slashes or drive names inside the name */
     private final boolean preserveAbsolutePath;
 
     /** The entry's permission mode. */
@@ -245,7 +245,7 @@ public class TarArchiveEntry implements ArchiveEntry, 
TarConstants {
      *
      * <p>The entry's name will be the value of the {@code name}
      * argument with all file separators replaced by forward slashes
-     * and leading slashes stripped.</p>
+     * and leading slashes as well as Windows drive letters stripped.</p>
      *
      * @param name the entry name
      */
@@ -264,7 +264,7 @@ public class TarArchiveEntry implements ArchiveEntry, 
TarConstants {
      *
      * @param name the entry name
      * @param preserveAbsolutePath whether to allow leading slashes
-     * in the name or drive letters.
+     * or drive letters in the name.
      *
      * @since 1.1
      */
@@ -307,7 +307,7 @@ public class TarArchiveEntry implements ArchiveEntry, 
TarConstants {
      * @param name the entry name
      * @param linkFlag the entry link flag.
      * @param preserveAbsolutePath whether to allow leading slashes
-     * in the name or drive letters.
+     * or drive letters in the name.
      *
      * @since 1.5
      */
@@ -327,8 +327,9 @@ public class TarArchiveEntry implements ArchiveEntry, 
TarConstants {
      *
      * <p>The entry's name will be the value of the {@code file}'s
      * path with all file separators replaced by forward slashes and
-     * leading slashes stripped. The name will end in a slash if the
-     * {@code file} represents a directory.</p>
+     * leading slashes as well as Windows drive letters stripped. The
+     * name will end in a slash if the {@code file} represents a
+     * directory.</p>
      *
      * @param file The file that the entry represents.
      */

Reply via email to