RFR: 8282819: Deprecate Locale class constructors [v3]
Naoto Sato
naoto at openjdk.java.net
Mon Mar 28 22:16:44 UTC 2022
On Mon, 28 Mar 2022 21:06:35 GMT, Roger Riggs <rriggs at openjdk.org> wrote:
>> While it is true for completeness, I would limit the addition of new method as little as possible, because there are already several ways to obtain a Locale object.
>
> As with other varargs method calls, it is possible to pass an array with the values.
> I think it would be useful to describe the arguments as using the varargs nomenclature and indicate
> the values are in the array. For example, the `java.util.List.of(E... elements)` method is explicit
> about the array. Anther API using varargs EnumSet.
Added the explanation following the `List.of(E... elements)` javadoc.
-------------
PR: https://git.openjdk.java.net/jdk/pull/7947
More information about the core-libs-dev
mailing list