Skip to content

Commit

Permalink
suppress IDE warning
Browse files Browse the repository at this point in the history
  • Loading branch information
brettwooldridge committed Nov 26, 2024
1 parent f54241b commit 8421230
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/zaxxer/hikari/pool/PoolBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ void resetConnectionState(final Connection connection, final ProxyConnection pro
}

if ((dirtyBits & DIRTY_BIT_ISOLATION) != 0 && proxyConnection.getTransactionIsolationState() != transactionIsolation) {
//noinspection MagicConstant
connection.setTransactionIsolation(transactionIsolation);
resetBits |= DIRTY_BIT_ISOLATION;
}
Expand Down Expand Up @@ -428,6 +429,7 @@ private void setupConnection(final Connection connection) throws ConnectionSetup
checkDriverSupport(connection);

if (transactionIsolation != defaultTransactionIsolation) {
//noinspection MagicConstant
connection.setTransactionIsolation(transactionIsolation);
}

Expand Down

0 comments on commit 8421230

Please sign in to comment.