mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 06:14:49 +02:00
8343237: Improve the copying of the available set of Currencies
Reviewed-by: bpb
This commit is contained in:
parent
41a627b789
commit
e1c4b4977e
1 changed files with 1 additions and 4 deletions
|
@ -486,10 +486,7 @@ public final class Currency implements Serializable {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
Set<Currency> result = (Set<Currency>) available.clone();
|
||||
return result;
|
||||
return new HashSet<>(available);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue