You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by si...@apache.org on 2011/05/31 07:34:03 UTC

svn commit: r1129494 - /commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/plugins/strategies/LoaderFromStream.java

Author: simonetripodi
Date: Tue May 31 05:34:03 2011
New Revision: 1129494

URL: http://svn.apache.org/viewvc?rev=1129494&view=rev
Log:
fixed checkstyle violation: Expected @throws tag for 'Exception'.

Modified:
    commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/plugins/strategies/LoaderFromStream.java

Modified: commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/plugins/strategies/LoaderFromStream.java
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/plugins/strategies/LoaderFromStream.java?rev=1129494&r1=1129493&r2=1129494&view=diff
==============================================================================
--- commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/plugins/strategies/LoaderFromStream.java (original)
+++ commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/plugins/strategies/LoaderFromStream.java Tue May 31 05:34:03 2011
@@ -46,7 +46,12 @@ public class LoaderFromStream
 
     private byte[] input;
 
-    /** See {@link #load}. */
+    /**
+     * See {@link #load}.
+     *
+     * @param s the input stream has to be loaded into memory
+     * @throws Exception if any error occurs while reading the input stream
+     */
     public LoaderFromStream( InputStream s )
         throws Exception
     {
@@ -57,6 +62,9 @@ public class LoaderFromStream
      * The contents of the input stream are loaded into memory, and cached for later use.
      * <p>
      * The caller is responsible for closing the input stream after this method has returned.
+     *
+     * @param s the input stream has to be loaded into memory
+     * @throws IOException if any error occurs while reading the input stream
      */
     private void load( InputStream s )
         throws IOException
@@ -74,7 +82,7 @@ public class LoaderFromStream
     }
 
     /**
-     * Add the rules previously loaded from the input stream into the specified digester.
+     * {@inheritDoc}
      */
     @Override
     public void addRules( final Digester d, final String path )