Skip to content

Commit 230f199

Browse files
committed
Fix issues reported by SonarCloud
1 parent d2969f1 commit 230f199

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clickhouse-http-client/src/main/java/com/clickhouse/client/http/ClickHouseHttpConnectionFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public static ClickHouseHttpConnection createConnection(ClickHouseNode server, C
2525
} catch (IOException e) {
2626
throw e;
2727
} catch (Throwable t) {
28-
log.warn("Error when creating http client %s, will use HTTP_URL_CONNECTION", provider.name(), t);
28+
log.warn("Error when creating http client %s, will use HTTP_URL_CONNECTION", provider, t);
2929
return new HttpUrlConnectionImpl(server, request, executor);
3030
}
3131
}

clickhouse-jdbc/src/main/java/com/clickhouse/jdbc/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ final long read(Options options) throws ClickHouseException, SQLException {
510510
if (options.hasFile()) {
511511
try {
512512
response.getInputStream().setCopyToTarget(
513-
!"-".equals(options.file) ? new FileOutputStream(options.file, false)
513+
!"-".equals(options.file) ? new FileOutputStream(options.file, false) // NOSONAR
514514
: System.out); // NOSONAR
515515
} catch (IOException e) {
516516
throw ClickHouseException.of(e, server);

0 commit comments

Comments
 (0)