commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1128635 - /commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/Digester.java
Date Sat, 28 May 2011 13:11:30 GMT
Author: simonetripodi
Date: Sat May 28 13:11:30 2011
New Revision: 1128635

URL: http://svn.apache.org/viewvc?rev=1128635&view=rev
Log:
fixed Redundant throws: 'MalformedURLException' is subclass of 'IOException'.
added missing @throws IOE tag

Modified:
    commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/Digester.java

Modified: commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/Digester.java
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/Digester.java?rev=1128635&r1=1128634&r2=1128635&view=diff
==============================================================================
--- commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/Digester.java
(original)
+++ commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/Digester.java
Sat May 28 13:11:30 2011
@@ -1773,12 +1773,13 @@ public class Digester
      * This method pretty much duplicates the standard behaviour, except that it calls URLConnection.setUseCaches(false)
      * before opening the connection.
      *
-     * @param The URL has to be read
+     * @param url The URL has to be read
      * @return The InputSource that reads from the input URL
+     * @throws IOException if any error occurs while reading the input URL
      * @since 1.8
      */
     public InputSource createInputSourceFromURL( URL url )
-        throws MalformedURLException, IOException
+        throws IOException
     {
         URLConnection connection = url.openConnection();
         connection.setUseCaches( false );
@@ -1796,10 +1797,11 @@ public class Digester
      * 
      * @param url URL for which to create an <code>InputSource</code>
      * @return The InputSource that reads from the input URL
+     * @throws IOException if any error occurs while reading the input URL
      * @since 1.8
      */
     public InputSource createInputSourceFromURL( String url )
-        throws MalformedURLException, IOException
+        throws IOException
     {
         return createInputSourceFromURL( new URL( url ) );
     }



Mime
View raw message