Skip to content

Commit ac50046

Browse files
author
Niall Pemberton
committed
Remove unnecessary throws throws XmlStreamReaderException from methods (already declares throwing IOException - which XmlStreamReaderException is)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@1004508 13f79535-47bb-0310-9956-ffa450edef68
1 parent 073bda9 commit ac50046

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/main/java/org/apache/commons/io/input/XmlStreamReader.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,7 @@ public XmlStreamReader(InputStream is) throws IOException {
183183
* @throws XmlStreamReaderException thrown if the charset encoding could not
184184
* be determined according to the specs.
185185
*/
186-
public XmlStreamReader(InputStream is, boolean lenient) throws IOException,
187-
XmlStreamReaderException {
186+
public XmlStreamReader(InputStream is, boolean lenient) throws IOException {
188187
defaultEncoding = staticDefaultEncoding;
189188
try {
190189
doRawStream(is, lenient);
@@ -313,8 +312,7 @@ public XmlStreamReader(InputStream is, String httpContentType)
313312
* be determined according to the specs.
314313
*/
315314
public XmlStreamReader(InputStream is, String httpContentType,
316-
boolean lenient, String defaultEncoding) throws IOException,
317-
XmlStreamReaderException {
315+
boolean lenient, String defaultEncoding) throws IOException {
318316
this.defaultEncoding = (defaultEncoding == null) ? staticDefaultEncoding
319317
: defaultEncoding;
320318
try {
@@ -362,7 +360,7 @@ public XmlStreamReader(InputStream is, String httpContentType,
362360
* be determined according to the specs.
363361
*/
364362
public XmlStreamReader(InputStream is, String httpContentType,
365-
boolean lenient) throws IOException, XmlStreamReaderException {
363+
boolean lenient) throws IOException {
366364
this(is, httpContentType, lenient, null);
367365
}
368366

0 commit comments

Comments
 (0)