RFR[8243488]: 'Add tests for set/get SendBufferSize and getReceiveBufferSize in DatagramSocket'

Alan Bateman Alan.Bateman at oracle.com
Thu Apr 30 11:24:45 UTC 2020


On 30/04/2020 12:15, Daniel Fuchs wrote:
>
> I don't understand your comment. Maybe I'm missing something?
> That's exactly what DSF is isn't it?
> We just choose to name the method 'open' instead of 'get'.
> And the static `DSF of(DSF)` method is simply there to provide
> a type witness and avoid a cast (you get a compilation error
> otherwise).
It's a naming issue mostly. If DSF is renamed to something like 
DatagramSocketSupplier then it might be a bit clearer. We have something 
similar in PrintSupportedOptions - I was reminded of that with the 
changes for ADQ that are currently under discussion here.

-Alan.


More information about the net-dev mailing list