This is an automated email from the ASF dual-hosted git repository. peterlee pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-compress.git
The following commit(s) were added to refs/heads/master by this push: new 6374698 restore error deleted throws declaration 6374698 is described below commit 637469893b0ade91d8bca61c25e0e9282f977213 Author: PeterAlfredLee <peteralfred...@gmail.com> AuthorDate: Tue Jun 2 09:55:41 2020 +0800 restore error deleted throws declaration --- .../apache/commons/compress/archivers/tar/TarArchiveOutputStream.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStream.java b/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStream.java index e4b0c2d..07b3e69 100644 --- a/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStream.java +++ b/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStream.java @@ -335,6 +335,9 @@ public class TarArchiveOutputStream extends ArchiveOutputStream { * @param archiveEntry The TarEntry to be written to the archive. * @throws IOException on error * @throws ClassCastException if archiveEntry is not an instance of TarArchiveEntry + * @throws IllegalArgumentException if the {@link TarArchiveOutputStream#longFileMode} equals + * {@link TarArchiveOutputStream#LONGFILE_ERROR} and the file + * name is too long * @throws IllegalArgumentException if the {@link TarArchiveOutputStream#bigNumberMode} equals * {@link TarArchiveOutputStream#BIGNUMBER_ERROR} and one of the numeric values * exceeds the limits of a traditional tar header.