SocketUtils ServerSocket、DatagramSocket use try-with-resource.
Comment From: jhoeller
On review, I prefer the explicitness of the close() calls in the current code. Since there is no actual resource operation to "try", I'd rather keep the immediate open-close steps explicit... instead of hiding the close step in the try-with-resources statement.
Thanks for the pull request, in any case!