sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Desruisseaux (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (SIS-78) Replace null locale by Locale.ROOT
Date Mon, 04 Feb 2013 12:50:12 GMT

     [ https://issues.apache.org/jira/browse/SIS-78?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Martin Desruisseaux closed SIS-78.
----------------------------------

    Resolution: Fixed

Fixed as of revision 1442094.
                
> Replace null locale by Locale.ROOT
> ----------------------------------
>
>                 Key: SIS-78
>                 URL: https://issues.apache.org/jira/browse/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: http://www.atlassian.com/software/jira

Mime
View raw message