RFR [15] 6394757: rev2: AbstractSet.removeAll semantics are surprisingly dependent on relative sizes

Stuart Marks stuart.marks at oracle.com
Tue May 12 21:30:10 UTC 2020



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