Bug 581425 - Use multi-catch for catch blocks in XSLLaunchShort Change-Id: I650650cdd253585205faaa7be58fe1414a548394
diff --git a/xsl/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLLaunchShortcut.java b/xsl/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLLaunchShortcut.java index 7efa32b..4ce227a 100644 --- a/xsl/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLLaunchShortcut.java +++ b/xsl/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLLaunchShortcut.java
@@ -14,7 +14,6 @@ package org.eclipse.wst.xsl.internal.debug.ui; import java.io.FileInputStream; -import java.io.FileNotFoundException; import java.io.IOException; import java.net.URI; import java.net.URISyntaxException; @@ -281,15 +280,7 @@ } } } - } catch (IOException e) { - // ignored - } catch (ParserConfigurationException e) { - // ignored - } catch (SAXException e) { - // ignored - } catch (CoreException e) { - // ignored - } catch (URISyntaxException e) { + } catch (IOException | ParserConfigurationException | SAXException | CoreException | URISyntaxException e) { // ignored } } @@ -455,16 +446,8 @@ XslOutputMethodSniffer xofs = new XslOutputMethodSniffer(); xofs.parseContents(new InputSource(new FileInputStream(lastDef.getLocation().toFile()))); return xofs.getOutputMethod(); - } catch (FileNotFoundException e) { + } catch (IOException | ParserConfigurationException | SAXException | CoreException e) { // It's OK - } catch (IOException e) { - // It's OK - } catch (ParserConfigurationException e) { - // It's OK - } catch (SAXException e) { - // It's OK - } catch (CoreException e) { - // It really is OK! } return null; }