You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2010/11/08 03:23:04 UTC

svn commit: r1032445 - in /commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/util: MonitorOutputStream.java MonitorRandomAccessContent.java

Author: sebb
Date: Mon Nov  8 02:23:04 2010
New Revision: 1032445

URL: http://svn.apache.org/viewvc?rev=1032445&view=rev
Log:
Document why throws IOException is needed

Modified:
    commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/util/MonitorOutputStream.java
    commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/util/MonitorRandomAccessContent.java

Modified: commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/util/MonitorOutputStream.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/util/MonitorOutputStream.java?rev=1032445&r1=1032444&r2=1032445&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/util/MonitorOutputStream.java (original)
+++ commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/util/MonitorOutputStream.java Mon Nov  8 02:23:04 2010
@@ -124,6 +124,7 @@ public class MonitorOutputStream
     /**
      * Called after this stream is closed.  This implementation does nothing.
      */
+    @SuppressWarnings("unused") // IOException is needed because subclasses may need to throw it
     protected void onClose() throws IOException
     {
     }

Modified: commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/util/MonitorRandomAccessContent.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/util/MonitorRandomAccessContent.java?rev=1032445&r1=1032444&r2=1032445&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/util/MonitorRandomAccessContent.java (original)
+++ commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/util/MonitorRandomAccessContent.java Mon Nov  8 02:23:04 2010
@@ -40,6 +40,7 @@ public class MonitorRandomAccessContent 
     /**
      * Called after this stream is closed.  This implementation does nothing.
      */
+    @SuppressWarnings("unused") // IOException is needed because subclasses may need to throw it
     protected void onClose() throws IOException
     {
     }