Skip to content

Commit

Permalink
suppressed warning
Browse files Browse the repository at this point in the history
  • Loading branch information
alexradzin committed Apr 24, 2024
1 parent bfe4f56 commit 252be14
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ public int[] executeBatch() throws SQLException {
List<Integer> result = new ArrayList<>();
for (String sql : batchStatements) {
for (StatementInfoWrapper query : StatementUtil.parseToStatementInfoWrappers(sql)) {
@SuppressWarnings("java:S6912") // Use "addBatch" and "executeBatch" to execute multiple SQL statements in a single call - this is the implementation of executeBatch
Optional<ResultSet> rs = execute(List.of(query));
result.add(rs.map(x -> 0).orElse(SUCCESS_NO_INFO));
}
Expand Down

0 comments on commit 252be14

Please sign in to comment.