8212132: (dc) Remove DatagramChannelImpl finalize method
Alan Bateman
Alan.Bateman at oracle.com
Wed Oct 23 20:46:02 UTC 2019
On 23/10/2019 21:38, Martin Buchholz wrote:
>
> :
>
> You would call it like this:
> this.cleanable = CleanerFactory.cleaner().register(this, cleanerFor(fd));
> It's just moving code around, and only slightly safer/more disciplined.
Okay, that might be a bit cleaner although it would be two static
factories as the cleaning action is different for TCP vs. UDP.
-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20191023/f38769c2/attachment.html>
More information about the nio-dev
mailing list