Because this is already the default when JDK's proxy is used.
By using ProxySelector.getDefault() by default, we can reduce user confusion.
One thing to note is DefaultProxySelector#select has some privileged/synchronized calls even for non-proxy calls, so we may need to consider whether there will be a performance hit.
Because this is already the default when JDK's proxy is used.
By using
ProxySelector.getDefault()by default, we can reduce user confusion.One thing to note is
DefaultProxySelector#selecthas some privileged/synchronized calls even for non-proxy calls, so we may need to consider whether there will be a performance hit.