Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B8804200CB1 for ; Sat, 24 Jun 2017 17:14:15 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B6A29160BF6; Sat, 24 Jun 2017 15:14:15 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 08BBB160BE6 for ; Sat, 24 Jun 2017 17:14:14 +0200 (CEST) Received: (qmail 23054 invoked by uid 500); 24 Jun 2017 15:14:14 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 23036 invoked by uid 99); 24 Jun 2017 15:14:14 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Jun 2017 15:14:14 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 71FFFDFF9F; Sat, 24 Jun 2017 15:14:11 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: bodewig@apache.org To: commits@commons.apache.org Date: Sat, 24 Jun 2017 15:14:12 -0000 Message-Id: <7ce9bf295cb649fc8744c9745f55b5d6@git.apache.org> In-Reply-To: <01c3d962692047b1a13082a32d73a18d@git.apache.org> References: <01c3d962692047b1a13082a32d73a18d@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/3] commons-compress git commit: COMPRESS-407 tweaks archived-at: Sat, 24 Jun 2017 15:14:15 -0000 COMPRESS-407 tweaks Project: http://git-wip-us.apache.org/repos/asf/commons-compress/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-compress/commit/e57007c0 Tree: http://git-wip-us.apache.org/repos/asf/commons-compress/tree/e57007c0 Diff: http://git-wip-us.apache.org/repos/asf/commons-compress/diff/e57007c0 Branch: refs/heads/master Commit: e57007c00d577c8f66a5d93681058a528613645c Parents: b6ae1d0 Author: Stefan Bodewig Authored: Sat Jun 24 17:02:30 2017 +0200 Committer: Stefan Bodewig Committed: Sat Jun 24 17:02:30 2017 +0200 ---------------------------------------------------------------------- .../commons/compress/archivers/tar/TarArchiveOutputStream.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-compress/blob/e57007c0/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStream.java ---------------------------------------------------------------------- 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 864d4ad..6b31705 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 @@ -93,7 +93,7 @@ public class TarArchiveOutputStream extends ArchiveOutputStream { private static final ZipEncoding ASCII = ZipEncodingHelper.getZipEncoding("ASCII"); - private static int BLOCK_SIZE_UNSPECIFIED = -511; + private static final int BLOCK_SIZE_UNSPECIFIED = -511; /** * Constructor for TarInputStream. @@ -175,7 +175,7 @@ public class TarArchiveOutputStream extends ArchiveOutputStream { realBlockSize = blockSize; } - if(realBlockSize <=0 || realBlockSize % RECORD_SIZE != 0) { + if (realBlockSize <=0 || realBlockSize % RECORD_SIZE != 0) { throw new IllegalArgumentException("Block size must be a multiple of 512 bytes. Attempt to use set size of " + blockSize); } out = new CountingOutputStream(os);