Andreas Lehmkühler created PDFBOX-5594:
------------------------------------------

             Summary: Remove finalize from TrueTypeFont
                 Key: PDFBOX-5594
                 URL: https://issues.apache.org/jira/browse/PDFBOX-5594
             Project: PDFBox
          Issue Type: Improvement
          Components: FontBox
    Affects Versions: 3.0.0 PDFBox
            Reporter: Andreas Lehmkühler
            Assignee: Andreas Lehmkühler
             Fix For: 3.0.0 PDFBox


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 {{org.apache.fontbox.ttf.TrueTypeFont}}. 

All the data of a {{RandomAccessReadDataStream}} is copied to a final byte 
array. The additional {{RandomAccessReadBuffer}} isn't needed at all, so that 
it is save to do nothing when closing a {{RandomAccessReadDataStream}}. Now it 
is save to remove the finalize override from {{TrueTypeFont}}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to