RFR: 8343237: Improve the copying of the available set of Currencies
Justin Lu
jlu at openjdk.org
Mon Nov 18 00:19:02 UTC 2024
On Fri, 1 Nov 2024 23:17:01 GMT, Justin Lu <jlu at openjdk.org> wrote:
> Please review this PR which is a small cleanup in `Currency.getAvailableCurrencies()`. We can use the `HashSet` constructor over `clone()` to make the defensive copy of the set of available currencies. This gets rid of the unsightly unchecked cast and SuppressWarnings annotation.
Thanks for the review.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/21845#issuecomment-2481695608
More information about the core-libs-dev
mailing list