Skip to content

Commit

Permalink
#1: Code cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
jenetics committed Jan 6, 2017
1 parent 701b026 commit 5bfb26e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions jpx.jdbc/src/main/java/io/jenetics/jpx/jdbc/SQLQuery.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ public SQLQuery on(final String name, final Object value) {
}

public <T> T as(final RowParser<T> parser) throws SQLException {
try (PreparedStatement stmt = PreparedSQL.prepare(_sql, _params, _conn)) {
try (final ResultSet rs = stmt.executeQuery()) {
return parser.parse(rs);
}
try (PreparedStatement stmt = PreparedSQL.prepare(_sql, _params, _conn);
ResultSet rs = stmt.executeQuery())
{
return parser.parse(rs);
}
}

Expand Down

0 comments on commit 5bfb26e

Please sign in to comment.