The formatter should be  a static constant in both cases - no need to
create each time.

I would have expected this to be done without using DateTimeFormatter
however, just directly calling an internal API.

Stephen




On 25 August 2017 at 18:43, Naoto Sato <[email protected]> wrote:
> Hi,
>
> Please review the fix to the following issue:
>
> https://bugs.openjdk.java.net/browse/JDK-8171049
>
> The proposed fix is located at:
>
> http://cr.openjdk.java.net/~naoto/8171049/webrev.00/
>
> The fix is to implement Era.getDisplayName() in each Era enum.
>
> Naoto

Reply via email to