Skip to content

Commit 603951f

Browse files
Fixes #1126 correct error in JavaDoc for HikariConfig.setInitializationFailTimeout().
1 parent 5607d8b commit 603951f

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/main/java/com/zaxxer/hikari/HikariConfig.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -591,10 +591,10 @@ public long getInitializationFailTimeout()
591591
* and the the pool will start and continue to try to obtain connections in the
592592
* background. This can mean that callers to {@code DataSource#getConnection()} may
593593
* encounter exceptions. </li>
594-
* <li>A value less than zero will <i>not</i> bypass any connection attempt and
595-
* validation during startup, and therefore the pool will start immediately. The
596-
* pool will continue to try to obtain connections in the background. This can mean
597-
* that callers to {@code DataSource#getConnection()} may encounter exceptions. </li>
594+
* <li>A value less than zero will bypass any connection attempt and validation during
595+
* startup, and therefore the pool will start immediately. The pool will continue to
596+
* try to obtain connections in the background. This can mean that callers to
597+
* {@code DataSource#getConnection()} may encounter exceptions. </li>
598598
* </ul>
599599
* Note that if this timeout value is greater than or equal to zero (0), and therefore an
600600
* initial connection validation is performed, this timeout does not override the
@@ -916,6 +916,7 @@ else if (isRegisterMbeans && poolName.contains(":")) {
916916
}
917917

918918
// treat empty property as null
919+
//noinspection NonAtomicOperationOnVolatileField
919920
catalog = getNullIfEmpty(catalog);
920921
connectionInitSql = getNullIfEmpty(connectionInitSql);
921922
connectionTestQuery = getNullIfEmpty(connectionTestQuery);

0 commit comments

Comments
 (0)