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

made enum fromString() less error-prone

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.13
    • 2.0.14, 3.0.0 PDFBox
    • None

    Description

      Patch proposed by TorstenF76: 

      This is no major issue, but when I saw it, i could not leave it as it was. So many hard coded duplicate strings. Error-prone on new enum values.

      Attachments

        1. 60.patch
          4 kB
          Tilman Hausherr

        Activity

          People

            tilman Tilman Hausherr
            tilman Tilman Hausherr
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: