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

simplify map operations

    XMLWordPrintableJSON

Details

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

    Description

      simplify operations on Map instances:

      • avoid unnecessary map.get() calls by iterating over entry sets instead key sets where possible
      • avoid accessing the same map entry multiple times by using map.computeIfAbsent(), map.putIfAbsent() etc.
      • use bulk operations where possible

      Attachments

        1. simplify_map_operations.patch
          11 kB
          Axel Howind

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: