Return-Path: Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: (qmail 25087 invoked from network); 5 Oct 2010 02:28:31 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Oct 2010 02:28:31 -0000 Received: (qmail 21973 invoked by uid 500); 5 Oct 2010 02:28:31 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 21880 invoked by uid 500); 5 Oct 2010 02:28:30 -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 21873 invoked by uid 99); 5 Oct 2010 02:28:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Oct 2010 02:28:30 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.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; Tue, 05 Oct 2010 02:28:29 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 9B8762388A02; Tue, 5 Oct 2010 02:28:08 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1004508 - /commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/XmlStreamReader.java Date: Tue, 05 Oct 2010 02:28:08 -0000 To: commits@commons.apache.org From: niallp@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101005022808.9B8762388A02@eris.apache.org> Author: niallp Date: Tue Oct 5 02:28:08 2010 New Revision: 1004508 URL: http://svn.apache.org/viewvc?rev=1004508&view=rev Log: Remove unnecessary throws throws XmlStreamReaderException from methods (already declares throwing IOException - which XmlStreamReaderException is) Modified: commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/XmlStreamReader.java Modified: commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/XmlStreamReader.java URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/XmlStreamReader.java?rev=1004508&r1=1004507&r2=1004508&view=diff ============================================================================== --- commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/XmlStreamReader.java (original) +++ commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/XmlStreamReader.java Tue Oct 5 02:28:08 2010 @@ -183,8 +183,7 @@ public class XmlStreamReader extends Rea * @throws XmlStreamReaderException thrown if the charset encoding could not * be determined according to the specs. */ - public XmlStreamReader(InputStream is, boolean lenient) throws IOException, - XmlStreamReaderException { + public XmlStreamReader(InputStream is, boolean lenient) throws IOException { defaultEncoding = staticDefaultEncoding; try { doRawStream(is, lenient); @@ -313,8 +312,7 @@ public class XmlStreamReader extends Rea * be determined according to the specs. */ public XmlStreamReader(InputStream is, String httpContentType, - boolean lenient, String defaultEncoding) throws IOException, - XmlStreamReaderException { + boolean lenient, String defaultEncoding) throws IOException { this.defaultEncoding = (defaultEncoding == null) ? staticDefaultEncoding : defaultEncoding; try { @@ -362,7 +360,7 @@ public class XmlStreamReader extends Rea * be determined according to the specs. */ public XmlStreamReader(InputStream is, String httpContentType, - boolean lenient) throws IOException, XmlStreamReaderException { + boolean lenient) throws IOException { this(is, httpContentType, lenient, null); }