Commit ad1ec281 authored by Karsten Loesing's avatar Karsten Loesing
Browse files

Collapse identical catch blocks.

parent 17f2c134
......@@ -529,10 +529,7 @@ public class DocumentStore {
try {
result = documentType.newInstance();
result.setFromDocumentString(documentString);
} catch (InstantiationException e) {
/* Handle below. */
log.error(e.getMessage(), e);
} catch (IllegalAccessException e) {
} catch (InstantiationException | IllegalAccessException e) {
/* Handle below. */
log.error(e.getMessage(), e);
}
......@@ -566,10 +563,7 @@ public class DocumentStore {
try {
result = documentType.newInstance();
result.setDocumentString(documentString);
} catch (InstantiationException e) {
/* Handle below. */
log.error(e.getMessage(), e);
} catch (IllegalAccessException e) {
} catch (InstantiationException | IllegalAccessException e) {
/* Handle below. */
log.error(e.getMessage(), e);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment