Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions src/main/java/org/duckdb/DuckDBConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,6 @@ public void rollback() throws SQLException {
}
}

@Override
@SuppressWarnings("deprecation")
protected void finalize() throws Throwable {
close();
}

public void close() throws SQLException {
if (isClosed()) {
return;
Expand Down
6 changes: 0 additions & 6 deletions src/main/java/org/duckdb/DuckDBPreparedStatement.java
Original file line number Diff line number Diff line change
Expand Up @@ -411,12 +411,6 @@ public boolean isClosed() throws SQLException {
return conn == null || conn.connRef == null;
}

@Override
@SuppressWarnings("deprecation")
protected void finalize() throws Throwable {
close();
}

@Override
public int getMaxFieldSize() throws SQLException {
checkOpen();
Expand Down
6 changes: 0 additions & 6 deletions src/main/java/org/duckdb/DuckDBResultSet.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,6 @@ public void close() throws SQLException {
}
}

@Override
@SuppressWarnings("deprecation")
protected void finalize() throws Throwable {
close();
}

public boolean isClosed() throws SQLException {
return resultRef == null;
}
Expand Down
5 changes: 0 additions & 5 deletions src/main/java/org/duckdb/DuckDBSingleValueAppender.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,6 @@ public void append(byte[] value) throws SQLException {
}
}

@SuppressWarnings("deprecation")
protected void finalize() throws Throwable {
close();
}

public synchronized void close() throws SQLException {
if (appender_ref != null) {
DuckDBNative.duckdb_jdbc_appender_close(appender_ref);
Expand Down