JDK 12 RFR of JDK-8146726 : Refactor AbstractProcessor to use Set.of and related methods
Ron Shapiro
ronshapiro at google.com
Tue Nov 27 21:23:46 UTC 2018
Set.of() throws if there are duplicate elements - but arrayToSet() didn't
do so. Is it intended to throw if either of these take duplicates?
On Tue, Nov 27, 2018 at 4:08 PM Sergey Bylokhov <Sergey.Bylokhov at oracle.com>
wrote:
> Hi, Joe.
>
> > Collections.emptySet() :
> Just curious why "Collections.emptySet()" is used instead of "Set.of()"?
>
>
> --
> Best regards, Sergey.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20181127/186731b2/attachment-0001.html>
More information about the compiler-dev
mailing list