Skip to content

Commit 3c2dd12

Browse files
committed
Adds Java Doc
1 parent 851da03 commit 3c2dd12

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/main/java/com/azuredoom/levelingcore/database/JdbcLevelRepository.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,15 @@ public boolean exists(UUID id) {
345345
}
346346
}
347347

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+
*/
348357
@Override
349358
public void close() {
350359
try {

0 commit comments

Comments
 (0)