Collapse identical catch statements in tests
This commit is contained in:
parent
52ada0131a
commit
04e7b8d7ab
@ -645,16 +645,7 @@ public class RepoXMLHandlerTest extends AndroidTestCase {
|
|||||||
InputSource is = new InputSource(new BufferedInputStream(input));
|
InputSource is = new InputSource(new BufferedInputStream(input));
|
||||||
reader.parse(is);
|
reader.parse(is);
|
||||||
return handler;
|
return handler;
|
||||||
} catch (ParserConfigurationException e) {
|
} catch (ParserConfigurationException | SAXException | IOException e) {
|
||||||
e.printStackTrace();
|
|
||||||
fail();
|
|
||||||
} catch (SAXException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
fail();
|
|
||||||
} catch (FileNotFoundException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
fail();
|
|
||||||
} catch (IOException e) {
|
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
fail();
|
fail();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user