Skip to content

Commit 3f4bcaf

Browse files
committed
Javadoc only changes
1 parent abe205e commit 3f4bcaf

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

ebean-datasource/src/main/java/io/ebean/datasource/pool/ConnectionPool.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -756,10 +756,7 @@ public String toString() {
756756
}
757757

758758
/**
759-
* Tries to close the pc in an async thread. The method waits up to 5 seconds and returns true,
760-
* if connection was closed in this time.
761-
* <p>
762-
* If the connection could not be closed within 5 seconds,
759+
* Closes the connection in the background as it may be slow or block.
763760
*/
764761
void closeConnectionFullyAsync(PooledConnection pc, boolean logErrors) {
765762
executorLock.lock();
@@ -771,7 +768,7 @@ void closeConnectionFullyAsync(PooledConnection pc, boolean logErrors) {
771768
} finally {
772769
executorLock.unlock();
773770
}
774-
// it is possible, that we receive runnables after shutdown.
771+
// it is possible that we receive runnables after shutdown.
775772
// in this case, we will execute them immediately (outside lock)
776773
pc.doCloseConnection(logErrors);
777774
}

ebean-datasource/src/main/java/io/ebean/datasource/pool/PooledConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ void closeConnectionFully(boolean logErrors) {
243243
}
244244

245245
/**
246-
* this mehthod performs network IO and may block
246+
* this method performs network IO and may block
247247
*/
248248
void doCloseConnection(boolean logErrors) {
249249
long start = System.nanoTime();

0 commit comments

Comments
 (0)