commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1199906 - in /commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors: pack200/Pack200Strategy.java xz/XZCompressorInputStream.java xz/XZCompressorOutputStream.java
Date Wed, 09 Nov 2011 18:26:00 GMT
Author: sebb
Date: Wed Nov  9 18:26:00 2011
New Revision: 1199906

URL: http://svn.apache.org/viewvc?rev=1199906&view=rev
Log:
Missing @Override

Modified:
    commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/pack200/Pack200Strategy.java
    commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/xz/XZCompressorInputStream.java
    commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/xz/XZCompressorOutputStream.java

Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/pack200/Pack200Strategy.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/pack200/Pack200Strategy.java?rev=1199906&r1=1199905&r2=1199906&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/pack200/Pack200Strategy.java
(original)
+++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/pack200/Pack200Strategy.java
Wed Nov  9 18:26:00 2011
@@ -29,12 +29,14 @@ import java.io.IOException;
 public enum Pack200Strategy {
     /** Cache output in memory */
     IN_MEMORY() {
+        @Override
         StreamBridge newStreamBridge() {
             return new InMemoryCachingStreamBridge();
         }
     },
     /** Cache output in a temporary file */
     TEMP_FILE() {
+        @Override
         StreamBridge newStreamBridge() throws IOException {
             return new TempFileCachingStreamBridge();
         }

Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/xz/XZCompressorInputStream.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/xz/XZCompressorInputStream.java?rev=1199906&r1=1199905&r2=1199906&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/xz/XZCompressorInputStream.java
(original)
+++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/xz/XZCompressorInputStream.java
Wed Nov  9 18:26:00 2011
@@ -96,6 +96,7 @@ public class XZCompressorInputStream ext
     }
 
     /** {@inheritDoc} */
+    @Override
     public int read() throws IOException {
         int ret = in.read();
         count(ret == -1 ? -1 : 1);
@@ -103,6 +104,7 @@ public class XZCompressorInputStream ext
     }
 
     /** {@inheritDoc} */
+    @Override
     public int read(byte[] buf, int off, int len) throws IOException {
         int ret = in.read(buf, off, len);
         count(ret);
@@ -110,16 +112,19 @@ public class XZCompressorInputStream ext
     }
 
     /** {@inheritDoc} */
+    @Override
     public long skip(long n) throws IOException {
         return in.skip(n);
     }
 
     /** {@inheritDoc} */
+    @Override
     public int available() throws IOException {
         return in.available();
     }
 
     /** {@inheritDoc} */
+    @Override
     public void close() throws IOException {
         in.close();
     }

Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/xz/XZCompressorOutputStream.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/xz/XZCompressorOutputStream.java?rev=1199906&r1=1199905&r2=1199906&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/xz/XZCompressorOutputStream.java
(original)
+++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/xz/XZCompressorOutputStream.java
Wed Nov  9 18:26:00 2011
@@ -60,11 +60,13 @@ public class XZCompressorOutputStream ex
     }
 
     /** {@inheritDoc} */
+    @Override
     public void write(int b) throws IOException {
         out.write(b);
     }
 
     /** {@inheritDoc} */
+    @Override
     public void write(byte[] buf, int off, int len) throws IOException {
         out.write(buf, off, len);
     }
@@ -75,6 +77,7 @@ public class XZCompressorOutputStream ex
      * the output stream. Calling this function very often may increase
      * the compressed file size a lot.
      */
+    @Override
     public void flush() throws IOException {
         out.flush();
     }
@@ -88,6 +91,7 @@ public class XZCompressorOutputStream ex
     }
 
     /** {@inheritDoc} */
+    @Override
     public void close() throws IOException {
         out.close();
     }



Mime
View raw message