code: protected boolean hostsEqual(URL u1, URL u2) {
          // Android-changed: Don't compare the InetAddresses of the hosts.
          if (u1.getHost() != null && u2.getHost() != null)
              return u1.getHost().equalsIgnoreCase(u2.getHost());
           else
              return u1.getHost() == null && u2.getHost() == null;
      }
docs: Compares the host components of two URLs.
  @param u1 the URL of the first host to compare
  @param u2 the URL of the second host to compare
  @return  {@code true} if and only if they
  are equal, {@code false} otherwise.
  @since 1.3