for (int i=0; i<_noProxy.length; i++) { if (_noProxy[i].startsWith(".") && host.endsWith(_noProxy[i])) {
String[] noProxy = getNoProxy(); for (int i=0; i<noProxy.length; i++) { if (noProxy[i].startsWith(".") && host.endsWith(noProxy[i])) {
    private boolean useProxy(URL url) {        String host = url.getHost();        boolean ssl = url.getProtocol().equalsIgnoreCase("https");                if (ssl && (_httpsProxy == null || "".equals(_httpsProxy))) {            return false;        } else if (!ssl && (_httpProxy == null || "".equals(_httpProxy))) {            return false;        } else {            for (int i=0; i<_noProxy.length; i++) {                if (_noProxy[i].startsWith(".") && host.endsWith(_noProxy[i])) {                    return false;                } else if (host.equals(_noProxy[i])) {                    return false;                }            }        }        return true;    }