On Mon, 28 Mar 2022 21:06:35 GMT, Roger Riggs <rri...@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