JDK 12 RFR of JDK-8146726 : Refactor AbstractProcessor to use Set.of and related methods (original) (raw)
Ron Shapiro ronshapiro at google.com
Tue Nov 27 21:23:46 UTC 2018
- Previous message: JDK 12 RFR of JDK-8146726 : Refactor AbstractProcessor to use Set.of and related methods
- Next message: JDK 12 RFR of JDK-8146726 : Refactor AbstractProcessor to use Set.of and related methods
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Previous message: JDK 12 RFR of JDK-8146726 : Refactor AbstractProcessor to use Set.of and related methods
- Next message: JDK 12 RFR of JDK-8146726 : Refactor AbstractProcessor to use Set.of and related methods
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]