Skip to content

Commit 85f58da

Browse files
committed
Restore Java 8 compatibility of tests
1 parent e96d558 commit 85f58da

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/test/org/firebirdsql/jdbc/FBPreparedStatementGeneratedKeysTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,10 +481,10 @@ void testPrepare_INSERT_multipleRows_returnGeneratedKeys() throws Exception {
481481
@Test
482482
void getGeneratedKeys_autoCommit_withBlob() throws Exception {
483483
con.setAutoCommit(false);
484-
try (var stmt = con.createStatement()) {
484+
try (Statement stmt = con.createStatement()) {
485485
stmt.execute(ADD_BLOB_COLUMN);
486486
con.setAutoCommit(true);
487-
try (var pstmt = con.prepareStatement("INSERT INTO TABLE_WITH_TRIGGER(BLOB_COLUMN)"
487+
try (PreparedStatement pstmt = con.prepareStatement("INSERT INTO TABLE_WITH_TRIGGER(BLOB_COLUMN)"
488488
+ " VALUES (?) RETURNING ID, BLOB_COLUMN", Statement.RETURN_GENERATED_KEYS)){
489489
pstmt.setString(1, TEXT_VALUE);
490490
pstmt.execute();

src/test/org/firebirdsql/jdbc/FBStatementGeneratedKeysTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ void testExecute_multiRow_UPDATE_returnGeneratedKeys() throws Exception {
655655
@Test
656656
void getGeneratedKeys_autoCommit_withBlob() throws Exception {
657657
con.setAutoCommit(false);
658-
try (var stmt = con.createStatement()) {
658+
try (Statement stmt = con.createStatement()) {
659659
stmt.execute(ADD_BLOB_COLUMN);
660660
con.setAutoCommit(true);
661661
try {

0 commit comments

Comments
 (0)