Skip to content

Commit f680c49

Browse files
author
Dennis Labordus
committed
Changed code for coverage.
Signed-off-by: Dennis Labordus <[email protected]>
1 parent ab6ff0a commit f680c49

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

validator/src/main/java/org/lfenergy/compas/scl/validator/xsd/XSDValidator.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,8 @@ public void validate() {
6868
try {
6969
SAXSource source = new SAXSource(new InputSource(new StringReader(sclData)));
7070
validator.validate(source);
71-
} catch (IOException exception) {
72-
LOGGER.error("[XSD validation] IOException: {}", exception.getMessage());
73-
} catch (SAXException exception) {
74-
LOGGER.error("[XSD validation] SAXException: {}", exception.getMessage());
71+
} catch (IOException | SAXException exception) {
72+
LOGGER.error("[XSD validation] Exception: {}", exception.getMessage());
7573
}
7674
}
7775

0 commit comments

Comments
 (0)