Skip to content

Commit

Permalink
fix: checkstyle and properties being overridden (#471)
Browse files Browse the repository at this point in the history
  • Loading branch information
karenc-bq authored May 30, 2023
1 parent 318f336 commit 9be3a6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/checkstyle/checkstyle-suppressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@
<suppress files="[\\/]MysqlConnectorJDataSourceHelper\.java" checks="IllegalImport"/>
<suppress files="[\\/]PgDataSourceHelper\.java" checks="IllegalImport"/>
<suppress files="[\\/]test[\\/]" checks="IllegalImport"/>
<suppress files="[\\/]ExtendedFormatter\.java" checks="Header"/>
</suppressions>
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,9 @@ public Connection connect(
final @NonNull Properties props)
throws SQLException {

final Properties copy = PropertyUtils.copyProperties(props);
final ConnectInfo connectInfo =
this.targetDriverDialect.prepareConnectInfo(protocol, hostSpec, props);
this.targetDriverDialect.prepareConnectInfo(protocol, hostSpec, copy);

LOGGER.finest(() -> "Connecting to " + connectInfo.url
+ PropertyUtils.logProperties(connectInfo.props, "\nwith properties: \n"));
Expand Down

0 comments on commit 9be3a6a

Please sign in to comment.