Skip to content

Commit 5780499

Browse files
committed
removed exceptions from catch block as they are not needed anymore
1 parent d669fa9 commit 5780499

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

TLS-Core/src/main/java/de/rub/nds/tlsattacker/core/config/ConfigIO.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import javax.xml.parsers.ParserConfigurationException;
1717
import javax.xml.transform.TransformerException;
1818
import javax.xml.xpath.XPathExpressionException;
19-
import javax.xml.xpath.XPathFactoryConfigurationException;
2019
import org.xml.sax.SAXException;
2120

2221
public class ConfigIO {
@@ -35,8 +34,8 @@ public static void write(Config config, OutputStream os) {
3534
JAXB.marshal(config, tempStream);
3635
try {
3736
os.write(XMLPrettyPrinter.prettyPrintXML(new String(tempStream.toByteArray())).getBytes());
38-
} catch (IOException | TransformerException | XPathExpressionException | XPathFactoryConfigurationException
39-
| ParserConfigurationException | SAXException ex) {
37+
} catch (IOException | TransformerException | XPathExpressionException | ParserConfigurationException
38+
| SAXException ex) {
4039
throw new RuntimeException("Could not format XML");
4140
}
4241
}

TLS-Core/src/main/java/de/rub/nds/tlsattacker/core/workflow/WorkflowTraceSerializer.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,7 @@ public static void write(OutputStream outputStream, WorkflowTrace workflowTrace)
118118
m.marshal(workflowTrace, tempStream);
119119
try {
120120
outputStream.write(XMLPrettyPrinter.prettyPrintXML(new String(tempStream.toByteArray())).getBytes());
121-
} catch (TransformerException | XPathExpressionException | XPathFactoryConfigurationException
122-
| ParserConfigurationException | SAXException ex) {
121+
} catch (TransformerException | XPathExpressionException | ParserConfigurationException | SAXException ex) {
123122
throw new RuntimeException("Could not format XML");
124123
}
125124
}

0 commit comments

Comments
 (0)