Return-Path: X-Original-To: apmail-commons-commits-archive@minotaur.apache.org Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CC8356909 for ; Sat, 28 May 2011 13:11:53 +0000 (UTC) Received: (qmail 83668 invoked by uid 500); 28 May 2011 13:11:53 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 83594 invoked by uid 500); 28 May 2011 13:11:53 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 83587 invoked by uid 99); 28 May 2011 13:11:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 May 2011 13:11:53 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 May 2011 13:11:51 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 7BE8B2388A33; Sat, 28 May 2011 13:11:30 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@commons.apache.org From: simonetripodi@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110528131130.7BE8B2388A33@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 InputSource * @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 ) ); }