Skip to content

Commit

Permalink
fix spotbugs warning
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Mar 23, 2020
1 parent 3d53d61 commit 8fbe4a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Expand Up @@ -149,9 +149,9 @@ protected void postDataForVersion(URL url, byte[] postData) throws IOException {
conn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");
conn.connect();

OutputStream os = conn.getOutputStream();
os.write(postData);
os.close();
try (OutputStream os = conn.getOutputStream()) {
os.write(postData);
}

parseHeaders(conn);
parseResponse(conn);
Expand Down
Expand Up @@ -114,8 +114,9 @@ public <T> ISqlReadCursor<T> queryForCursor(String sql, ISqlRowMapper<T> mapper,
}

public <T> ISqlReadCursor<T> queryForCursor(String sql, ISqlRowMapper<T> mapper, boolean returnLobObjects) {
return queryForCursor(sql, mapper, returnLobObjects);
return queryForCursor(sql, mapper);
}

public List<Row> query(String sql) {
return query(sql, (Object[])null, (int[]) null);
}
Expand Down

0 comments on commit 8fbe4a5

Please sign in to comment.