Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-1886

[PATCH] Add type safety to collections in fop.area package (e.a.)

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: trunk
    • Fix Version/s: None
    • Component/s: unqualified
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: All
    • External issue ID:
      50593

      Description

      Attached patch mostly adds type safety to all Collections used in the area package internally, simplifies some for-loops, eliminates redundant casts and (un)boxing...

      Reason why it's posted as a patch is that it concerns en entire package. If I judge correctly, the only effect should be that after the patch, most of the 'unsafe operation' warnings shift to other packages. The ones remaining are due to operations on external 'unsafe' Collections.

      Most significant impact is likely the change in method signature for the Resolvable interface. Not sure if that is being used by extensions...

        Attachments

        1. fop_area.diff
          55 kB
          Andreas L. Delmelle
        2. toc-error.xml
          1.0 kB
          Matthias Reischenbacher

          Activity

            People

            • Assignee:
              fop-dev@xmlgraphics.apache.org fop-dev
              Reporter:
              adelmelle@apache.org Andreas L. Delmelle
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: