RFR: 8302818: Optimize wrapper sets and immutable sets of Enums [v2]

Tingjun Yuan duke at openjdk.org
Mon Feb 20 14:07:00 UTC 2023


On Mon, 20 Feb 2023 13:58:01 GMT, liach <duke at openjdk.org> wrote:

> no, Set.copyOf explicitly allows duplications, unlike Set.of. You need to read the specs so you know what you are doing.

Sorry, my bad. I've fixed that.

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

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


More information about the core-libs-dev mailing list