[ 
https://issues.apache.org/jira/browse/PDFBOX-5573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17702102#comment-17702102
 ] 

ASF subversion and git services commented on PDFBOX-5573:
---------------------------------------------------------

Commit 1908480 from Tilman Hausherr in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1908480 ]

PDFBOX-5573: fix unnecessary boxing/unboxing, by Axel Howind

> fix unnecessary boxing/unboxing
> -------------------------------
>
>                 Key: PDFBOX-5573
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5573
>             Project: PDFBox
>          Issue Type: Improvement
>    Affects Versions: 3.0.0 PDFBox
>            Reporter: Axel Howind
>            Assignee: Tilman Hausherr
>            Priority: Minor
>             Fix For: 3.0.0 PDFBox
>
>         Attachments: fix_unnecessary_boxing_unboxing.patch
>
>
> Most of the changes make the code just more readable and the compiler does 
> auto(un)boxing where necessary.
> Replacing Boolean.valueOf() and Float.valueOf() on the other hand completely 
> avoids a boxing/unboxing cycle because in both cases the result is stored in 
> a primitive.
> PR: https://github.com/apache/pdfbox/pull/159
> And a question: do you prefer patches or pull requests for PDFBox?



--
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