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 { ...@@ -529,10 +529,7 @@ public class DocumentStore {
try { try {
result = documentType.newInstance(); result = documentType.newInstance();
result.setFromDocumentString(documentString); result.setFromDocumentString(documentString);
} catch (InstantiationException e) { } catch (InstantiationException | IllegalAccessException e) {
/* Handle below. */
log.error(e.getMessage(), e);
} catch (IllegalAccessException e) {
/* Handle below. */ /* Handle below. */
log.error(e.getMessage(), e); log.error(e.getMessage(), e);
} }
...@@ -566,10 +563,7 @@ public class DocumentStore { ...@@ -566,10 +563,7 @@ public class DocumentStore {
try { try {
result = documentType.newInstance(); result = documentType.newInstance();
result.setDocumentString(documentString); result.setDocumentString(documentString);
} catch (InstantiationException e) { } catch (InstantiationException | IllegalAccessException e) {
/* Handle below. */
log.error(e.getMessage(), e);
} catch (IllegalAccessException e) {
/* Handle below. */ /* Handle below. */
log.error(e.getMessage(), e); 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