Skip to content

Commit

Permalink
TarFile: fix deprecated finalize()
Browse files Browse the repository at this point in the history
finalize() not needed - only used as autoclosable.
  • Loading branch information
EcljpseB0T authored and laeubi committed Feb 10, 2024
1 parent fa81fb9 commit cc8b9e2
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,4 @@ public void close() {
public String getName() {
return file.getPath();
}

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

0 comments on commit cc8b9e2

Please sign in to comment.