if (addr1 != null || addr2 != null)
if (addr1 != null && addr2 != null)
  protected boolean hostsEqual (URL url1, URL url2)  {    InetAddress addr1 = getHostAddress (url1);    InetAddress addr2 = getHostAddress (url2);    if (addr1 != null || addr2 != null)      return addr1.equals (addr2);    String host1 = url1.getHost();    String host2 = url2.getHost();        if (host1 != null && host2 != null)      return host1.equalsIgnoreCase (host2);    return host1 == null && host2 == null;  }