We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 851da03 commit 3c2dd12Copy full SHA for 3c2dd12
1 file changed
src/main/java/com/azuredoom/levelingcore/database/JdbcLevelRepository.java
@@ -345,6 +345,15 @@ public boolean exists(UUID id) {
345
}
346
347
348
+ /**
349
+ * Closes the underlying JDBC datasource if it implements {@link AutoCloseable}.
350
+ * <p>
351
+ * This method attempts to close the {@code dataSource} resource gracefully. If the {@code dataSource}
352
+ * is an instance of {@code AutoCloseable}, its {@code close()} method is invoked. Any exception
353
+ * raised during the closing process is caught and wrapped in a {@link LevelingCoreException}.
354
+ *
355
+ * @throws LevelingCoreException if an error occurs while closing the {@code dataSource}.
356
+ */
357
@Override
358
public void close() {
359
try {
0 commit comments