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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • 2.5
    • None
    • unqualified
    • None
    • Operating System: All
      Platform: All
    • 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. toc-error.xml
          1.0 kB
          Matthias Reischenbacher
        2. fop_area.diff
          55 kB
          Andreas L. Delmelle

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: