Repository: commons-compress Updated Branches: refs/heads/master beb43a555 -> cce7005ae
document the slash normalization for all constructors Project: http://git-wip-us.apache.org/repos/asf/commons-compress/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-compress/commit/cce7005a Tree: http://git-wip-us.apache.org/repos/asf/commons-compress/tree/cce7005a Diff: http://git-wip-us.apache.org/repos/asf/commons-compress/diff/cce7005a Branch: refs/heads/master Commit: cce7005aef7ea4e8e39eb96e37ea64d1abc6cfb0 Parents: beb43a5 Author: Stefan Bodewig <[email protected]> Authored: Sun Jan 21 17:09:58 2018 +0100 Committer: Stefan Bodewig <[email protected]> Committed: Sun Jan 21 17:09:58 2018 +0100 ---------------------------------------------------------------------- .../commons/compress/archivers/tar/TarArchiveEntry.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-compress/blob/cce7005a/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 cf93feb..ad2e8e9 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 @@ -243,7 +243,8 @@ public class TarArchiveEntry implements ArchiveEntry, TarConstants { * to construct the entry's header "by hand". File is set to null. * * <p>The entry's name will be the value of the {@code name} - * argument with leading slashes stripped.</p> + * argument with all file separators replaced by forward slashes + * and leading slashes stripped.</p> * * @param name the entry name */ @@ -256,8 +257,9 @@ public class TarArchiveEntry implements ArchiveEntry, TarConstants { * to construct the entry's header "by hand". File is set to null. * * <p>The entry's name will be the value of the {@code name} - * argument with leading slashes stripped if {@code - * preserveLeadingSlashes} is {@code false}.</p> + * argument with all file separators replaced by forward slashes. + * Leading slashes are stripped if {@code preserveLeadingSlashes} + * is {@code false}.</p> * * @param name the entry name * @param preserveLeadingSlashes whether to allow leading slashes
