Uploaded image for project: 'Commons Codec'
  1. Commons Codec
  2. CODEC-230

URLCodec.WWW_FORM_URL should be private

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.10
    • 1.11
    • None

    Description

      URLCodec.WWW_FORM_URL is mutable and should be made private.
      Otherwise subclasses can change the array accidentally or deliberately.

      However this would change the API for sub-classes.

      A work-round would be to create a parallel private field and keep WWW_FORM_URL as a copy, but marked deprecated.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: