You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ni...@apache.org on 2010/10/05 04:28:08 UTC
svn commit: r1004508 -
/commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/XmlStreamReader.java
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);
}