RFR [15] 6394757: rev2: AbstractSet.removeAll semantics are surprisingly dependent on relative sizes
Alan Snyder
javalists at cbfiddle.com
Tue May 12 22:58:20 UTC 2020
But what kind of instance should be created by Set.copyOf?
> On May 12, 2020, at 2:30 PM, Stuart Marks <stuart.marks at oracle.com> wrote:
>
>
>
> On 5/9/20 7:48 PM, Alan Snyder wrote:
>> A small point… you might want to reconsider your analysis of Set.copyOf(), as it is a static method and there is no receiver.
>
> Of course there is no receiver. For static factory methods, and for constructors, I meant the newly created instance is the one whose membership contract is used.
>
> s'marks
>
More information about the core-libs-dev
mailing list