RFR: 8348351: Improve lazy initialization of the available currencies set [v2]

Chen Liang liach at openjdk.org
Thu May 8 23:30:06 UTC 2025


On Thu, 8 May 2025 23:26:57 GMT, Justin Lu <jlu at openjdk.org> wrote:

>> Please review this PR which stems from discussion in the PR of JDK-8347949.
>> 
>> The set of lazily loaded Currencies is a good fit for stable values. `available` can now be made final as it is a SV supplier.
>> 
>> (This change also includes an unrelated minor edit to comments in `Currency::getCurrencies` to make the distinction for simple vs special Currencies.)
>
> Justin Lu has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Chen's review - method name clarification

Looks great to me. Thanks!

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

Marked as reviewed by liach (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/25134#pullrequestreview-2826594504


More information about the core-libs-dev mailing list