On Tue, 26 Jul 2022 20:52:20 GMT, Naoto Sato <na...@openjdk.org> wrote:

> > I would suggest deferring the APIs for `getTransformedContentFields()` and 
> > `getTransformedContentSource()`.
> 
> OK, removed those two convenient APIs.

I expected much of the complexity of parsing and storing content transformed 
extension strings would be unnecessary without the APIs. The original string 
form of the extension should be sufficient for `Locale.getExtension`. It also 
adds quite a bit of complexity and overhead to getDisplayName to reconstruct 
the strings.  The correct syntax of the string can be checked with a RegEx in 
the builder. If a simpler implementation is sufficient, there is less code to 
maintain.

-------------

PR: https://git.openjdk.org/jdk/pull/9620

Reply via email to