[loc-en-dev] Revised Locale API proposal
Yoshito Umaoka
y.umaoka at gmail.com
Tue Sep 8 16:16:10 PDT 2009
Doug Felt wrote:
> Looks good to me. I can edit the text for readability in some places,
> but there's nothing significant. I suggest not documenting
> NullPointerExceptions, but instead only documenting places where null
> is _accepted_ as a value, since you have to document what it means
> anyway, and this is in general rarer.
>
> Other comments::
> - Do we want LocaleNameProvider to be able to return a display name
> for a full locale? It seems eventually data could provide more
> natural display names.
>
> - The Builder idiom (from Josh Bloch) uses 'build' instead of 'create'
> as the name for the method that returns the product of the builder.
> We should probably follow this.
>
We once discuss about LocaleNameProvider to support the combined rule.
The idea itself is valid, but not sure it actually fits the current SPI
framework, which is based on a list of supported locales and it does not
allow 3rd party's impl to override the Java's standard implementation
for most common locales.
For the build idiom, I do not have any preferences. I'm fine with "build".
-Yoshito
More information about the locale-enhancement-dev
mailing list