A DESCRIPTION OF THE REQUEST :
- In class Charset move shortcut handling for extendedProvider from lookupExtendedCharset() inside to method lookupViaProviders().
- May be instantiate ExtendedCharsets as singleton.
Every time, if lookupExtendedCharset() fails for particular charset, a new ExtendedCharsets object will be instantiated by lookupViaProviders(), which just as well must fail.
Additionally, static variable ExtendedCharsets.instance would be updated, so from this time, it holds different instance than cached in Charset.extendedProvider variable.
EXPECTED VERSUS ACTUAL BEHAVIOR :
First instantiation of ExtendedCharsets should be reused by lookupViaProviders().
Invocation of Charset.isSupported() or Charset.forName() instantiates and initializes superfluous ExtendedCharsets object.