Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-540

Make NumericEntityEscaper immutable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0
    • lang.text.translate.*
    • None

    Description

      NumericEntityEscaper is currently mutable and not thread-safe.

      It can easily be made immutable (and thus thread-safe) by using a private constructor to set the instance fields.

      See patch to follow.

      A similar approach can be used for some of the other classes in the translate package.

      Attachments

        1. LookupTranslator.patch
          2 kB
          Sebb
        2. NumericEntityEscaper.patch
          2 kB
          Sebb
        3. UnicodeEscaper.patch
          2 kB
          Sebb

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: