Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-5573

fix unnecessary boxing/unboxing

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.27, 3.0.0 PDFBox
    • 2.0.28, 3.0.0 PDFBox
    • None
    • None
    • Patch

    Description

      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?

      Attachments

        Activity

          People

            tilman Tilman Hausherr
            axh Axel Howind
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: