private static boolean sameNamedEndpoint(final NamedEndpoint n1, final NamedEndpoint n2) {
        if (n1 == null || n2 == null) {
            return false;
        }
        return Objects.equals(n1.getHostName(), n2.getHostName()) && n1.getPort() == n2.getPort();
    }
Default implementation of an {@link HttpRoutePlanner}. It will not make use of
any Java system properties, nor of system or browser proxy settings.

@since 4.3
httpclient5/src/main/java/org/apache/hc/client5/http/impl/routing/DefaultRoutePlanner.java