Skip to content

Commit 5776c61

Browse files
committed
Collapse catch blocks
1 parent 9fdffb5 commit 5776c61

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

extensions/indexes/spatial/src/main/java/org/exist/indexing/spatial/AbstractGMLJDBCIndex.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,7 @@ public void configure(BrokerPool pool, Path dataDir, Element config) throws Data
8686
super.configure(pool, dataDir, config);
8787
try {
8888
checkDatabase();
89-
} catch (ClassNotFoundException e) {
90-
throw new DatabaseConfigurationException(e.getMessage());
91-
} catch (SQLException e) {
89+
} catch (ClassNotFoundException | SQLException e) {
9290
throw new DatabaseConfigurationException(e.getMessage());
9391
}
9492
}

extensions/indexes/spatial/src/main/java/org/exist/indexing/spatial/AbstractGMLJDBCIndexWorker.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -514,10 +514,7 @@ public boolean checkIndex(DBBroker broker) {
514514
try {
515515
conn = acquireConnection();
516516
return checkIndex(broker, conn);
517-
} catch (SQLException e) {
518-
LOG.error(e);
519-
return false;
520-
} catch (SpatialIndexException e) {
517+
} catch (SQLException | SpatialIndexException e) {
521518
LOG.error(e);
522519
return false;
523520
} finally {

0 commit comments

Comments
 (0)