Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.27, 3.0.0 PDFBox
-
None
Description
The usage of finalize is discouraged so that it is a good idea to remove it.
I've found a way to do so for ScratchFileBuffer. All created buffers are collected within ScratchFile. Once a buffer is closed it is removed from the collection. If ScratchFile is closed when closing the pdf all remaining buffers are closed as well.
Attachments
Issue Links
- is related to
-
PDFBOX-5362 [PATCH] Replace finalize() with Cleaner
- Closed