From 04e7b8d7aba0a366a53f98f27250d65c08dffc44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Fri, 13 Nov 2015 18:46:11 +0100 Subject: [PATCH] Collapse identical catch statements in tests --- .../src/org/fdroid/fdroid/RepoXMLHandlerTest.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/F-Droid/test/src/org/fdroid/fdroid/RepoXMLHandlerTest.java b/F-Droid/test/src/org/fdroid/fdroid/RepoXMLHandlerTest.java index 7a9c0d649..24bd74eff 100644 --- a/F-Droid/test/src/org/fdroid/fdroid/RepoXMLHandlerTest.java +++ b/F-Droid/test/src/org/fdroid/fdroid/RepoXMLHandlerTest.java @@ -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(); }