Skip to content

Commit

Permalink
Fix Java 8 source compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
vasiliy-yashkov authored and mrotteveel committed Jan 15, 2024
1 parent 22e8d25 commit 681609b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/org/firebirdsql/jdbc/FBResultSetTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -724,8 +724,8 @@ void testUpdatableStatementResultSetDowngradeToReadOnlyWhenQueryNotUpdatable(
void testUpdatableStatementPrefixPK_downgradeToReadOnly(String scrollableCursorPropertyValue) throws Exception {
try (Connection connection = createConnection(scrollableCursorPropertyValue)) {
executeCreateTable(connection, CREATE_WITH_COMPOSITE_PK);
try (var stmt = connection.createStatement(TYPE_SCROLL_INSENSITIVE, CONCUR_UPDATABLE);
var rs = stmt.executeQuery("select id1, val from WITH_COMPOSITE_PK")) {
try (Statement stmt = connection.createStatement(TYPE_SCROLL_INSENSITIVE, CONCUR_UPDATABLE);
ResultSet rs = stmt.executeQuery("select id1, val from WITH_COMPOSITE_PK")) {
assertThat(stmt.getWarnings(), allOf(
notNullValue(),
fbMessageStartsWith(JaybirdErrorCodes.jb_concurrencyResetReadOnlyReasonNotUpdatable)));
Expand All @@ -746,8 +746,8 @@ void testUpdatableStatementPrefixPK_downgradeToReadOnly(String scrollableCursorP
void testUpdatableStatementSuffixPK_downgradeToReadOnly(String scrollableCursorPropertyValue) throws Exception {
try (Connection connection = createConnection(scrollableCursorPropertyValue)) {
executeCreateTable(connection, CREATE_WITH_COMPOSITE_PK);
try (var stmt = connection.createStatement(TYPE_SCROLL_INSENSITIVE, CONCUR_UPDATABLE);
var rs = stmt.executeQuery("select id2, val from WITH_COMPOSITE_PK")) {
try (Statement stmt = connection.createStatement(TYPE_SCROLL_INSENSITIVE, CONCUR_UPDATABLE);
ResultSet rs = stmt.executeQuery("select id2, val from WITH_COMPOSITE_PK")) {
assertThat(stmt.getWarnings(), allOf(
notNullValue(),
fbMessageStartsWith(JaybirdErrorCodes.jb_concurrencyResetReadOnlyReasonNotUpdatable)));
Expand Down

0 comments on commit 681609b

Please sign in to comment.