Collapse identical catch statements in tests

This commit is contained in:
Daniel Martí 2015-11-13 18:46:11 +01:00
parent 52ada0131a
commit 04e7b8d7ab

View File

@ -645,16 +645,7 @@ public class RepoXMLHandlerTest extends AndroidTestCase {
InputSource is = new InputSource(new BufferedInputStream(input));
reader.parse(is);
return handler;
} catch (ParserConfigurationException e) {
e.printStackTrace();
fail();
} catch (SAXException e) {
e.printStackTrace();
fail();
} catch (FileNotFoundException e) {
e.printStackTrace();
fail();
} catch (IOException e) {
} catch (ParserConfigurationException | SAXException | IOException e) {
e.printStackTrace();
fail();
}