Repository: commons-compress Updated Branches: refs/heads/master a428e428d -> cf4b43bd1
Better local variable name. Project: http://git-wip-us.apache.org/repos/asf/commons-compress/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-compress/commit/f1a58211 Tree: http://git-wip-us.apache.org/repos/asf/commons-compress/tree/f1a58211 Diff: http://git-wip-us.apache.org/repos/asf/commons-compress/diff/f1a58211 Branch: refs/heads/master Commit: f1a582111a26c4044c289d96ced42fc1621212d1 Parents: a428e42 Author: Gary Gregory <ggreg...@apache.org> Authored: Thu Dec 8 23:45:59 2016 -0800 Committer: Gary Gregory <ggreg...@apache.org> Committed: Thu Dec 8 23:45:59 2016 -0800 ---------------------------------------------------------------------- .../commons/compress/archivers/ArchiveStreamFactory.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-compress/blob/f1a58211/src/main/java/org/apache/commons/compress/archivers/ArchiveStreamFactory.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/compress/archivers/ArchiveStreamFactory.java b/src/main/java/org/apache/commons/compress/archivers/ArchiveStreamFactory.java index dc59405..38a1c4a 100644 --- a/src/main/java/org/apache/commons/compress/archivers/ArchiveStreamFactory.java +++ b/src/main/java/org/apache/commons/compress/archivers/ArchiveStreamFactory.java @@ -510,18 +510,18 @@ public class ArchiveStreamFactory implements ArchiveStreamProvider { } // Tar needs an even bigger buffer to check the signature; read the first block - final byte[] tarheader = new byte[TAR_HEADER_SIZE]; - in.mark(tarheader.length); - signatureLength = IOUtils.readFully(in, tarheader); + final byte[] tarHeader = new byte[TAR_HEADER_SIZE]; + in.mark(tarHeader.length); + signatureLength = IOUtils.readFully(in, tarHeader); in.reset(); - if (TarArchiveInputStream.matches(tarheader, signatureLength)) { + if (TarArchiveInputStream.matches(tarHeader, signatureLength)) { return createArchiveInputStream(TAR, in); } // COMPRESS-117 - improve auto-recognition if (signatureLength >= TAR_HEADER_SIZE) { TarArchiveInputStream tais = null; try { - tais = new TarArchiveInputStream(new ByteArrayInputStream(tarheader)); + tais = new TarArchiveInputStream(new ByteArrayInputStream(tarHeader)); // COMPRESS-191 - verify the header checksum if (tais.getNextTarEntry().isCheckSumOK()) { return createArchiveInputStream(TAR, in);