Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Cleaner instead of finalizer in core JNA and JNA-platform
The following uses of finalizers were replaced by a Cleaner or removed because they are unneeded: - c.s.j.Memory#finalize - c.s.j.CallbackReference#finalize - c.s.j.NativeLibrary#finalize The cleanup handling is moved to the #close method and #dispose is being deprecated. Anyone relying on #dispose being called from the GC has to take action now! If a subclass needs a cleanup after this object goes out of scope, it will need to register a cleaner.
- Loading branch information
1 parent
102b54b
commit 2de6f1b
Showing
8 changed files
with
316 additions
and
263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.