return addresses;
if (addresses != null) return addresses;   byte[][] iplist = VMInetAddress.getHostByName(hostname);  if (iplist.length == 0) throw new UnknownHostException(hostname);  addresses = new InetAddress[iplist.length];  for (int i = 0; i < iplist.length; i++) { if (iplist[i].length != 4) throw new UnknownHostException(hostname);  addresses[i] = new Inet4Address(iplist[i], hostname); }  addToCache(hostname, addresses); return addresses;
    public static InetAddress[] getAllByName(String hostname)            throws UnknownHostException {        // Default to current host if necessary        if (hostname == null) {            InetAddress local = getLocalHost();            return getAllByName(local.getHostName());        }        // Check the cache for this host before doing a lookup        InetAddress[] addresses = checkCacheFor(hostname);        if (addresses != null) return (addresses);        // Not in cache, try the lookup        addresses = getHostByName(hostname);        if ((addresses == null) || (addresses.length == 0)) { throw new UnknownHostException(                hostname); }        addToCache(hostname, addresses);        return addresses;    }