code: public static InetAddress parseNumericAddress(String numericAddress) {
          if (numericAddress == null || numericAddress.isEmpty()) {
              return Inet6Address.LOOPBACK;
          }
          InetAddress result = parseNumericAddressNoThrow(numericAddress);
          result = disallowDeprecatedFormats(numericAddress, result);
          if (result == null) {
              throw new IllegalArgumentException("Not a numeric address: " + numericAddress);
          }
          return result;
      }
docs: Returns an InetAddress corresponding to the given numeric address (such
  as {@code "192.168.0.1"} or {@code "2001:4860:800d::68"}).
  This method will never do a DNS lookup. Non-numeric addresses are errors.
  
  @hide used by frameworks/base's NetworkUtils.numericToInetAddress
  @throws IllegalArgumentException if {@code numericAddress} is not a numeric address