Skip to content

Commit 1282e7e

Browse files
committed
Changed constant name to follow naming convention
Signed-off-by: Guian Gumpac <[email protected]>
1 parent 4cea522 commit 1282e7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/opensearch/jdbc/ConnectionImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public class ConnectionImpl implements OpenSearchConnection, JdbcWrapper, Loggin
5858
private ClusterMetadata clusterMetadata;
5959
// 28000 is the SQLSTATE for invalid authorization specification
6060
// https://docs.oracle.com/cd/E15817_01/appdev.111/b31228/appd.htm
61-
private final String incorrectCredentialsSQLState = "28000";
61+
private final String INCORRECT_CREDENTIALS_SQLSTATE = "28000";
6262

6363
public ConnectionImpl(ConnectionConfig connectionConfig, Logger log) throws SQLException {
6464
this(connectionConfig, ApacheHttpTransportFactory.INSTANCE, JsonHttpProtocolFactory.INSTANCE, log);
@@ -89,7 +89,7 @@ log, new SQLNonTransientException("Could not initialize transport for the connec
8989
this.open = true;
9090
} catch (HttpException ex) {
9191
logAndThrowSQLException(log, new SQLException("Connection error " + ex.getMessage(),
92-
incorrectCredentialsSQLState, ex));
92+
INCORRECT_CREDENTIALS_SQLSTATE, ex));
9393
} catch (ResponseException | IOException ex) {
9494
logAndThrowSQLException(log, new SQLException("Connection error " + ex.getMessage(), ex));
9595
}

0 commit comments

Comments
 (0)