Author: bodewig
Date: Thu Jul 28 15:00:41 2011
New Revision: 1151883

URL: http://svn.apache.org/viewvc?rev=1151883&view=rev
Log:
add a bunch of @Override annotations

Modified:
    
commons/proper/compress/branches/zip64/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveOutputStream.java

Modified: 
commons/proper/compress/branches/zip64/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveOutputStream.java
URL: 
http://svn.apache.org/viewvc/commons/proper/compress/branches/zip64/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveOutputStream.java?rev=1151883&r1=1151882&r2=1151883&view=diff
==============================================================================
--- 
commons/proper/compress/branches/zip64/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveOutputStream.java
 (original)
+++ 
commons/proper/compress/branches/zip64/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveOutputStream.java
 Thu Jul 28 15:00:41 2011
@@ -337,6 +337,7 @@ public class ZipArchiveOutputStream exte
     }
 
     /** {@inheritDoc} */
+    @Override
     public void finish() throws IOException {
         if (finished) {
             throw new IOException("This archive has already been finished");
@@ -361,6 +362,7 @@ public class ZipArchiveOutputStream exte
      * Writes all necessary data for this entry.
      * @throws IOException on error
      */
+    @Override
     public void closeArchiveEntry() throws IOException {
         if (finished) {
             throw new IOException("Stream has already been finished");
@@ -430,6 +432,7 @@ public class ZipArchiveOutputStream exte
      * {@inheritDoc} 
      * @throws ClassCastException if entry is not an instance of 
ZipArchiveEntry
      */
+    @Override
     public void putArchiveEntry(ArchiveEntry archiveEntry) throws IOException {
         if (finished) {
             throw new IOException("Stream has already been finished");
@@ -514,6 +517,7 @@ public class ZipArchiveOutputStream exte
      * compression method that hasn't been implemented yet.</p>
      * @since Apache Commons Compress 1.1
      */
+    @Override
     public boolean canWriteEntryData(ArchiveEntry ae) {
         if (ae instanceof ZipArchiveEntry) {
             return ZipUtil.canHandleEntryData((ZipArchiveEntry) ae);
@@ -528,6 +532,7 @@ public class ZipArchiveOutputStream exte
      * @param length the number of bytes to write
      * @throws IOException on error
      */
+    @Override
     public void write(byte[] b, int offset, int length) throws IOException {
         ZipUtil.checkRequestedFeatures(entry);
         if (entry.getMethod() == DEFLATED) {
@@ -563,6 +568,7 @@ public class ZipArchiveOutputStream exte
      *
      * @exception  IOException  if an I/O error occurs.
      */
+    @Override
     public void close() throws IOException {
         if (!finished) {
             finish();
@@ -582,6 +588,7 @@ public class ZipArchiveOutputStream exte
      *
      * @exception  IOException  if an I/O error occurs.
      */
+    @Override
     public void flush() throws IOException {
         if (out != null) {
             out.flush();
@@ -960,6 +967,7 @@ public class ZipArchiveOutputStream exte
      *
      * <p>Must not be used if the stream has already been closed.</p>
      */
+    @Override
     public ArchiveEntry createArchiveEntry(File inputFile, String entryName)
             throws IOException {
         if (finished) {


Reply via email to