Skip to content

Commit 480c091

Browse files
authored
Merge pull request #1276 from zhicwu/main
Discard security warnings for test class
2 parents d0b6c55 + 3ba5510 commit 480c091

File tree

1 file changed

+3
-3
lines changed
  • clickhouse-jdbc/src/main/java/com/clickhouse/jdbc

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ final long load(Options options) throws ClickHouseException, SQLException {
363363
.hasOption(ClickHouseClientOption.FORMAT)) {
364364
format = defaultFormat.defaultInputFormat();
365365
}
366-
try (PreparedStatement stmt = conn.prepareStatement(options.query + " format " + format.name())) {
366+
try (PreparedStatement stmt = conn.prepareStatement(options.query + " format " + format.name())) { // NOSONAR
367367
stmt.setObject(1, new File(options.file));
368368
rows = stmt.executeLargeUpdate();
369369
}
@@ -393,7 +393,7 @@ final long read(Options options) throws ClickHouseException, SQLException {
393393
try (ResultSet rs = stmt.executeQuery(options.query)) {
394394
try {
395395
rs.unwrap(ClickHouseResponse.class).getInputStream()
396-
.setCopyToTarget(new FileOutputStream(options.file, false));
396+
.setCopyToTarget(new FileOutputStream(options.file, false)); // NOSONAR
397397
} catch (IOException e) {
398398
throw SqlExceptionUtils.clientError(e);
399399
}
@@ -409,7 +409,7 @@ final long read(Options options) throws ClickHouseException, SQLException {
409409
}
410410
try (ClickHouseResponse response = request.executeAndWait()) {
411411
try {
412-
response.getInputStream().setCopyToTarget(new FileOutputStream(options.file, false));
412+
response.getInputStream().setCopyToTarget(new FileOutputStream(options.file, false)); // NOSONAR
413413
} catch (IOException e) {
414414
throw ClickHouseException.of(e, server);
415415
}

0 commit comments

Comments
 (0)