sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Desruisseaux (JIRA)" <>
Subject [jira] [Created] (SIS-78) Replace null locale by Locale.ROOT
Date Sun, 03 Feb 2013 13:30:12 GMT
Martin Desruisseaux created SIS-78:

             Summary: Replace null locale by Locale.ROOT
                 Key: SIS-78
             Project: Spatial Information Systems
          Issue Type: Improvement
          Components: Utilities
            Reporter: Martin Desruisseaux
            Assignee: Martin Desruisseaux
            Priority: Minor
             Fix For: 0.3

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)}}

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message