mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
[PR #1329] [MERGED] Drop finalize() #1920
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/google/brotli/pull/1329
Author: @copybara-service[bot]
Created: 9/15/2025
Status: ✅ Merged
Merged: 9/16/2025
Merged by: @copybara-service[bot]
Base:
master← Head:test_807135470📝 Commits (1)
85d46ceDrop finalize()📊 Changes
5 files changed (+18 additions, -44 deletions)
View changed files
📝
java/org/brotli/wrapper/dec/Decoder.java(+5 -4)📝
java/org/brotli/wrapper/dec/DecoderJNI.java(+0 -9)📝
java/org/brotli/wrapper/enc/BrotliOutputStream.java(+1 -1)📝
java/org/brotli/wrapper/enc/Encoder.java(+5 -10)📝
java/org/brotli/wrapper/enc/EncoderJNI.java(+7 -20)📄 Description
Drop finalize()
Now it is solely embedders responisbility to close things that hold native resources. No more "safety net".
Consider "try-with-resources". For longer lasting items (e.g. native PreparedDictionary) use Cleaner as a last resort.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.