Uploaded image for project: 'Commons Imaging'
  1. Commons Imaging
  2. IMAGING-22

IPTCConstants: final arrays are not immutable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0-alpha1
    • None
    • None

    Description

      formats.jpeg.iptc.IPTCConstants contains the following public static final arrays:

      IPTC_PREFIX
      IPTC_TYPES

      Array element are not immutable, even if the array itself is, so the entries could potentially be corrupted accidentally or deliberately.

      IPTC_PREFIX does not appear to be used, so could perhaps be deleted. If not, it could be made private and a getter added.

      IPTC_TYPES only appears to be used in IPTCTypeLookup, so could potentially be moved there and made private.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: