Return-Path: X-Original-To: apmail-commons-commits-archive@minotaur.apache.org Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E050F6D36 for ; Sat, 6 Aug 2011 16:31:05 +0000 (UTC) Received: (qmail 76650 invoked by uid 500); 6 Aug 2011 16:31:05 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 76466 invoked by uid 500); 6 Aug 2011 16:31:04 -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 76459 invoked by uid 99); 6 Aug 2011 16:31:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Aug 2011 16:31:04 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Aug 2011 16:31:01 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 1F07D23889DA for ; Sat, 6 Aug 2011 16:30:42 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1154536 - in /commons/proper/compress/trunk/src/main/java/org/apache/commons/compress: archivers/ar/ archivers/cpio/ archivers/tar/ compressors/bzip2/ compressors/gzip/ Date: Sat, 06 Aug 2011 16:30:41 -0000 To: commits@commons.apache.org From: bodewig@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110806163042.1F07D23889DA@eris.apache.org> Author: bodewig Date: Sat Aug 6 16:30:40 2011 New Revision: 1154536 URL: http://svn.apache.org/viewvc?rev=1154536&view=rev Log: @Override Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveEntry.java commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveInputStream.java commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveOutputStream.java commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveEntry.java commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveInputStream.java commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveOutputStream.java commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStream.java commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStream.java commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/bzip2/BZip2CompressorInputStream.java commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/bzip2/BZip2CompressorOutputStream.java commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/gzip/GzipCompressorInputStream.java commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/gzip/GzipCompressorOutputStream.java Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveEntry.java URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveEntry.java?rev=1154536&r1=1154535&r2=1154536&view=diff ============================================================================== --- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveEntry.java (original) +++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveEntry.java Sat Aug 6 16:30:40 2011 @@ -116,11 +116,13 @@ public class ArArchiveEntry implements A } /** {@inheritDoc} */ + @Override public long getSize() { return this.getLength(); } /** {@inheritDoc} */ + @Override public String getName() { return name; } @@ -145,6 +147,7 @@ public class ArArchiveEntry implements A } /** {@inheritDoc} */ + @Override public Date getLastModifiedDate() { return new Date(1000 * getLastModified()); } @@ -154,11 +157,13 @@ public class ArArchiveEntry implements A } /** {@inheritDoc} */ + @Override public boolean isDirectory() { return false; } /** {@inheritDoc} */ + @Override public int hashCode() { final int prime = 31; int result = 1; @@ -167,6 +172,7 @@ public class ArArchiveEntry implements A } /** {@inheritDoc} */ + @Override public boolean equals(Object obj) { if (this == obj) { return true; Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveInputStream.java URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveInputStream.java?rev=1154536&r1=1154535&r2=1154536&view=diff ============================================================================== --- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveInputStream.java (original) +++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveInputStream.java Sat Aug 6 16:30:40 2011 @@ -216,6 +216,7 @@ public class ArArchiveInputStream extend * @see * org.apache.commons.compress.archivers.ArchiveInputStream#getNextEntry() */ + @Override public ArchiveEntry getNextEntry() throws IOException { return getNextArEntry(); } @@ -225,6 +226,7 @@ public class ArArchiveInputStream extend * * @see java.io.InputStream#close() */ + @Override public void close() throws IOException { if (!closed) { closed = true; @@ -238,6 +240,7 @@ public class ArArchiveInputStream extend * * @see java.io.InputStream#read(byte[], int, int) */ + @Override public int read(byte[] b, final int off, final int len) throws IOException { int toRead = len; if (currentEntry != null) { Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveOutputStream.java URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveOutputStream.java?rev=1154536&r1=1154535&r2=1154536&view=diff ============================================================================== --- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveOutputStream.java (original) +++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveOutputStream.java Sat Aug 6 16:30:40 2011 @@ -53,6 +53,7 @@ public class ArArchiveOutputStream exten } /** {@inheritDoc} */ + @Override public void closeArchiveEntry() throws IOException { if(finished) { throw new IOException("Stream has already been finished"); @@ -68,6 +69,7 @@ public class ArArchiveOutputStream exten } /** {@inheritDoc} */ + @Override public void putArchiveEntry( final ArchiveEntry pEntry ) throws IOException { if(finished) { throw new IOException("Stream has already been finished"); @@ -164,6 +166,7 @@ public class ArArchiveOutputStream exten return offset; } + @Override public void write(byte[] b, int off, int len) throws IOException { out.write(b, off, len); count(len); @@ -173,6 +176,7 @@ public class ArArchiveOutputStream exten /** * Calls finish if necessary, and then closes the OutputStream */ + @Override public void close() throws IOException { if(!finished) { finish(); @@ -182,6 +186,7 @@ public class ArArchiveOutputStream exten } /** {@inheritDoc} */ + @Override public ArchiveEntry createArchiveEntry(File inputFile, String entryName) throws IOException { if(finished) { @@ -191,6 +196,7 @@ public class ArArchiveOutputStream exten } /** {@inheritDoc} */ + @Override public void finish() throws IOException { if(haveUnclosedEntry) { throw new IOException("This archive contains unclosed entries."); Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveEntry.java URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveEntry.java?rev=1154536&r1=1154535&r2=1154536&view=diff ============================================================================== --- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveEntry.java (original) +++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveEntry.java Sat Aug 6 16:30:40 2011 @@ -421,6 +421,7 @@ public class CpioArchiveEntry implements * @return Returns the filesize. * @see org.apache.commons.compress.archivers.ArchiveEntry#getSize() */ + @Override public long getSize() { return this.filesize; } @@ -514,6 +515,7 @@ public class CpioArchiveEntry implements * * @return Returns the name. */ + @Override public String getName() { return this.name; } @@ -578,6 +580,7 @@ public class CpioArchiveEntry implements } /** {@inheritDoc} */ + @Override public Date getLastModifiedDate() { return new Date(1000 * getTime()); } @@ -614,6 +617,7 @@ public class CpioArchiveEntry implements * * @return TRUE if this entry is a directory. */ + @Override public boolean isDirectory() { return (this.mode & S_IFMT) == C_ISDIR; } @@ -858,6 +862,7 @@ public class CpioArchiveEntry implements /* (non-Javadoc) * @see java.lang.Object#hashCode() */ + @Override public int hashCode() { final int prime = 31; int result = 1; @@ -868,6 +873,7 @@ public class CpioArchiveEntry implements /* (non-Javadoc) * @see java.lang.Object#equals(java.lang.Object) */ + @Override public boolean equals(Object obj) { if (this == obj) { return true; Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveInputStream.java URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveInputStream.java?rev=1154536&r1=1154535&r2=1154536&view=diff ============================================================================== --- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveInputStream.java (original) +++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveInputStream.java Sat Aug 6 16:30:40 2011 @@ -99,6 +99,7 @@ public class CpioArchiveInputStream exte * if an I/O error has occurred or if a CPIO file error has * occurred */ + @Override public int available() throws IOException { ensureOpen(); if (this.entryEOF) { @@ -113,6 +114,7 @@ public class CpioArchiveInputStream exte * @throws IOException * if an I/O error has occurred */ + @Override public void close() throws IOException { if (!this.closed) { in.close(); @@ -222,6 +224,7 @@ public class CpioArchiveInputStream exte * if an I/O error has occurred or if a CPIO file error has * occurred */ + @Override public int read(final byte[] b, final int off, final int len) throws IOException { ensureOpen(); @@ -396,6 +399,7 @@ public class CpioArchiveInputStream exte * @throws IllegalArgumentException * if n < 0 */ + @Override public long skip(final long n) throws IOException { if (n < 0) { throw new IllegalArgumentException("negative skip length"); @@ -420,6 +424,7 @@ public class CpioArchiveInputStream exte } /** {@inheritDoc} */ + @Override public ArchiveEntry getNextEntry() throws IOException { return getNextCPIOEntry(); } Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveOutputStream.java URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveOutputStream.java?rev=1154536&r1=1154535&r2=1154536&view=diff ============================================================================== --- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveOutputStream.java (original) +++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveOutputStream.java Sat Aug 6 16:30:40 2011 @@ -165,6 +165,7 @@ public class CpioArchiveOutputStream ext * occurred * @throws ClassCastException if entry is not an instance of CpioArchiveEntry */ + @Override public void putArchiveEntry(ArchiveEntry entry) throws IOException { if(finished) { throw new IOException("Stream has already been finished"); @@ -318,6 +319,7 @@ public class CpioArchiveOutputStream ext * org.apache.commons.compress.archivers.ArchiveOutputStream#closeArchiveEntry * () */ + @Override public void closeArchiveEntry() throws IOException { if(finished) { throw new IOException("Stream has already been finished"); @@ -358,6 +360,7 @@ public class CpioArchiveOutputStream ext * if an I/O error has occurred or if a CPIO file error has * occurred */ + @Override public void write(final byte[] b, final int off, final int len) throws IOException { ensureOpen(); @@ -392,6 +395,7 @@ public class CpioArchiveOutputStream ext * if an I/O exception has occurred or if a CPIO file error has * occurred */ + @Override public void finish() throws IOException { ensureOpen(); if (finished) { @@ -422,6 +426,7 @@ public class CpioArchiveOutputStream ext * if an I/O error has occurred or if a CPIO file error has * occurred */ + @Override public void close() throws IOException { if(!finished) { finish(); @@ -491,6 +496,7 @@ public class CpioArchiveOutputStream ext * * @see org.apache.commons.compress.archivers.ArchiveOutputStream#createArchiveEntry(java.io.File, java.lang.String) */ + @Override public ArchiveEntry createArchiveEntry(File inputFile, String entryName) throws IOException { if(finished) { Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java?rev=1154536&r1=1154535&r2=1154536&view=diff ============================================================================== --- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java (original) +++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java Sat Aug 6 16:30:40 2011 @@ -326,6 +326,7 @@ public class TarArchiveEntry implements * @param it Entry to be checked for equality. * @return True if the entries are equal. */ + @Override public boolean equals(Object it) { if (it == null || getClass() != it.getClass()) { return false; @@ -338,6 +339,7 @@ public class TarArchiveEntry implements * * @return the entry hashcode */ + @Override public int hashCode() { return getName().hashCode(); } @@ -359,6 +361,7 @@ public class TarArchiveEntry implements * * @return This entry's name. */ + @Override public String getName() { return name.toString(); } @@ -524,6 +527,7 @@ public class TarArchiveEntry implements } /** {@inheritDoc} */ + @Override public Date getLastModifiedDate() { return getModTime(); } @@ -551,6 +555,7 @@ public class TarArchiveEntry implements * * @return This entry's file size. */ + @Override public long getSize() { return size; } @@ -635,6 +640,7 @@ public class TarArchiveEntry implements * * @return True if this entry is a directory. */ + @Override public boolean isDirectory() { if (file != null) { return file.isDirectory(); Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStream.java URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStream.java?rev=1154536&r1=1154535&r2=1154536&view=diff ============================================================================== --- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStream.java (original) +++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStream.java Sat Aug 6 16:30:40 2011 @@ -86,6 +86,7 @@ public class TarArchiveInputStream exten * Closes this stream. Calls the TarBuffer's close() method. * @throws IOException on error */ + @Override public void close() throws IOException { buffer.close(); } @@ -111,6 +112,7 @@ public class TarArchiveInputStream exten * @return The number of available bytes for the current entry. * @throws IOException for signature */ + @Override public int available() throws IOException { if (entrySize - entryOffset > Integer.MAX_VALUE) { return Integer.MAX_VALUE; @@ -128,6 +130,7 @@ public class TarArchiveInputStream exten * @return the number actually skipped * @throws IOException on error */ + @Override public long skip(long numToSkip) throws IOException { // REVIEW // This is horribly inefficient, but it ensures that we @@ -149,6 +152,7 @@ public class TarArchiveInputStream exten /** * Since we do not support marking just yet, we do nothing. */ + @Override public synchronized void reset() { } @@ -354,6 +358,7 @@ public class TarArchiveInputStream exten } } + @Override public ArchiveEntry getNextEntry() throws IOException { return getNextTarEntry(); } @@ -371,6 +376,7 @@ public class TarArchiveInputStream exten * @return The number of bytes read, or -1 at EOF. * @throws IOException on error */ + @Override public int read(byte[] buf, int offset, int numToRead) throws IOException { int totalRead = 0; @@ -443,6 +449,7 @@ public class TarArchiveInputStream exten * *

May return false if the current entry is a sparse file.

*/ + @Override public boolean canReadEntryData(ArchiveEntry ae) { if (ae instanceof TarArchiveEntry) { TarArchiveEntry te = (TarArchiveEntry) ae; Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStream.java URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStream.java?rev=1154536&r1=1154535&r2=1154536&view=diff ============================================================================== --- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStream.java (original) +++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStream.java Sat Aug 6 16:30:40 2011 @@ -113,6 +113,7 @@ public class TarArchiveOutputStream exte * * @throws IOException on error */ + @Override public void finish() throws IOException { if (finished) { throw new IOException("This archive has already been finished"); @@ -131,6 +132,7 @@ public class TarArchiveOutputStream exte * Closes the underlying OutputStream. * @throws IOException on error */ + @Override public void close() throws IOException { if(!finished) { finish(); @@ -165,6 +167,7 @@ public class TarArchiveOutputStream exte * @throws IOException on error * @throws ClassCastException if archiveEntry is not an instance of TarArchiveEntry */ + @Override public void putArchiveEntry(ArchiveEntry archiveEntry) throws IOException { if(finished) { throw new IOException("Stream has already been finished"); @@ -215,6 +218,7 @@ public class TarArchiveOutputStream exte * next entry written. * @throws IOException on error */ + @Override public void closeArchiveEntry() throws IOException { if(finished) { throw new IOException("Stream has already been finished"); @@ -256,6 +260,7 @@ public class TarArchiveOutputStream exte * @param numToWrite The number of bytes to write. * @throws IOException on error */ + @Override public void write(byte[] wBuf, int wOffset, int numToWrite) throws IOException { if ((currBytes + numToWrite) > currSize) { throw new IOException("request to write '" + numToWrite @@ -335,12 +340,13 @@ public class TarArchiveOutputStream exte buffer.writeRecord(recordBuf); } - // used to be implemented via FilterOutputStream + @Override public void flush() throws IOException { out.flush(); } /** {@inheritDoc} */ + @Override public ArchiveEntry createArchiveEntry(File inputFile, String entryName) throws IOException { if(finished) { Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/bzip2/BZip2CompressorInputStream.java URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/bzip2/BZip2CompressorInputStream.java?rev=1154536&r1=1154535&r2=1154536&view=diff ============================================================================== --- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/bzip2/BZip2CompressorInputStream.java (original) +++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/bzip2/BZip2CompressorInputStream.java Sat Aug 6 16:30:40 2011 @@ -113,6 +113,7 @@ public class BZip2CompressorInputStream } /** {@inheritDoc} */ + @Override public int read() throws IOException { if (this.in != null) { return read0(); @@ -126,6 +127,7 @@ public class BZip2CompressorInputStream * * @see java.io.InputStream#read(byte[], int, int) */ + @Override public int read(final byte[] dest, final int offs, final int len) throws IOException { if (offs < 0) { @@ -303,6 +305,7 @@ public class BZip2CompressorInputStream } } + @Override public void close() throws IOException { InputStream inShadow = this.in; if (inShadow != null) { Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/bzip2/BZip2CompressorOutputStream.java URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/bzip2/BZip2CompressorOutputStream.java?rev=1154536&r1=1154535&r2=1154536&view=diff ============================================================================== --- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/bzip2/BZip2CompressorOutputStream.java (original) +++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/bzip2/BZip2CompressorOutputStream.java Sat Aug 6 16:30:40 2011 @@ -432,6 +432,7 @@ public class BZip2CompressorOutputStream } /** {@inheritDoc} */ + @Override public void write(final int b) throws IOException { if (this.out != null) { write0(b); @@ -497,6 +498,7 @@ public class BZip2CompressorOutputStream /** * Overriden to close the stream. */ + @Override protected void finalize() throws Throwable { finish(); super.finalize(); @@ -519,6 +521,7 @@ public class BZip2CompressorOutputStream } } + @Override public void close() throws IOException { if (out != null) { OutputStream outShadow = this.out; @@ -527,6 +530,7 @@ public class BZip2CompressorOutputStream } } + @Override public void flush() throws IOException { OutputStream outShadow = this.out; if (outShadow != null) { @@ -639,6 +643,7 @@ public class BZip2CompressorOutputStream return this.blockSize100k; } + @Override public void write(final byte[] buf, int offs, final int len) throws IOException { if (offs < 0) { Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/gzip/GzipCompressorInputStream.java URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/gzip/GzipCompressorInputStream.java?rev=1154536&r1=1154535&r2=1154536&view=diff ============================================================================== --- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/gzip/GzipCompressorInputStream.java (original) +++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/gzip/GzipCompressorInputStream.java Sat Aug 6 16:30:40 2011 @@ -44,6 +44,7 @@ public class GzipCompressorInputStream e } /** {@inheritDoc} */ + @Override public int read() throws IOException { int read = in.read(); this.count(read < 0 ? -1 : 1); @@ -55,6 +56,7 @@ public class GzipCompressorInputStream e * * @since Apache Commons Compress 1.1 */ + @Override public int read(byte[] b) throws IOException { int read = in.read(b); this.count(read); @@ -66,6 +68,7 @@ public class GzipCompressorInputStream e * * @since Apache Commons Compress 1.1 */ + @Override public int read(byte[] b, int from, int length) throws IOException { int read = in.read(b, from, length); this.count(read); @@ -105,6 +108,7 @@ public class GzipCompressorInputStream e * * @since 1.2 */ + @Override public void close() throws IOException { if (this.in != System.in) { this.in.close(); Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/gzip/GzipCompressorOutputStream.java URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/gzip/GzipCompressorOutputStream.java?rev=1154536&r1=1154535&r2=1154536&view=diff ============================================================================== --- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/gzip/GzipCompressorOutputStream.java (original) +++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/gzip/GzipCompressorOutputStream.java Sat Aug 6 16:30:40 2011 @@ -33,6 +33,7 @@ public class GzipCompressorOutputStream } /** {@inheritDoc} */ + @Override public void write(int b) throws IOException { out.write(b); } @@ -42,6 +43,7 @@ public class GzipCompressorOutputStream * * @since Apache Commons Compress 1.1 */ + @Override public void write(byte[] b) throws IOException { out.write(b); } @@ -51,10 +53,12 @@ public class GzipCompressorOutputStream * * @since Apache Commons Compress 1.1 */ + @Override public void write(byte[] b, int from, int length) throws IOException { out.write(b, from, length); } + @Override public void close() throws IOException { out.close(); }