Uploaded image for project: 'Spatial Information Systems'
  1. Spatial Information Systems
  2. SIS-78

Replace null locale by Locale.ROOT

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.3
    • Component/s: Utilities
    • Labels:
      None

      Description

      The various methods expecting a Locale argument interpret null value as a request for "unlocalized" data. This is a legacy from pre-Java 6 days. But since Java 6, a new constant can be used for unlocalized data: Locale.ROOT. We should replace all null locales by Locale.ROOT. We should also consider not accepting anymore null locale argument in most methods, except maybe the following ones (because widely used):

      • IndexedResourceBundle.getResources(Locale)
      • InternationalString.toString(Locale)

        Attachments

          Activity

            People

            • Assignee:
              desruisseaux Martin Desruisseaux
              Reporter:
              desruisseaux Martin Desruisseaux
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: