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

Replace null locale by Locale.ROOT

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.3
    • Utilities
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: