On Fri, 1 Nov 2024 23:17:01 GMT, Justin Lu <j...@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.

This pull request has now been integrated.

Changeset: e1c4b497
Author:    Justin Lu <j...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/e1c4b4977ec613efe4f51151433e242a256204ee
Stats:     4 lines in 1 file changed: 0 ins; 3 del; 1 mod

8343237: Improve the copying of the available set of Currencies

Reviewed-by: bpb

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

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

Reply via email to