You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sis.apache.org by "Chris A. Mattmann (JIRA)" <ji...@apache.org> on 2013/06/08 06:11:21 UTC
[jira] [Reopened] (SIS-78) Replace null locale by Locale.ROOT
[ https://issues.apache.org/jira/browse/SIS-78?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris A. Mattmann reopened SIS-78:
----------------------------------
> 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