On Thu, 24 Dec 2020 15:00:04 GMT, Sean Mullan <[email protected]> wrote:
> What about using List.of() instead? For now, the Collections.singletonList() is more compact, which uses one class variable. While List.of(T) shares the internal implementation with List.of(T t1, T t2), which uses two class variables. ------------- PR: https://git.openjdk.java.net/jdk/pull/1872
