diff --git a/src/main/java/com/zaxxer/hikari/pool/ProxyConnection.java b/src/main/java/com/zaxxer/hikari/pool/ProxyConnection.java index 24a435a1..c66fe50c 100644 --- a/src/main/java/com/zaxxer/hikari/pool/ProxyConnection.java +++ b/src/main/java/com/zaxxer/hikari/pool/ProxyConnection.java @@ -144,9 +144,9 @@ public abstract class ProxyConnection implements Connection /** {@inheritDoc} */ final SQLException checkException(final SQLException sqle) { - String sqlState = sqle.getSQLState(); + final String sqlState = sqle.getSQLState(); if (sqlState != null) { - boolean isForceClose = sqlState.startsWith("08") || SQL_ERRORS.contains(sqlState); + final boolean isForceClose = sqlState.startsWith("08") || SQL_ERRORS.contains(sqlState); if (isForceClose && delegate != ClosedConnection.CLOSED_CONNECTION) { LOGGER.warn("{} - Connection {} marked as broken because of SQLSTATE({}), ErrorCode({})", poolEntry.getPoolName(), delegate, sqlState, sqle.getErrorCode(), sqle); @@ -155,7 +155,7 @@ public abstract class ProxyConnection implements Connection poolEntry.evict("(connection broken)"); } else { - SQLException nse = sqle.getNextException(); + final SQLException nse = sqle.getNextException(); if (nse != null && nse != sqle) { checkException(nse); }