/guava/android/guava/src/com/google/common/net/InetAddresses.java
boolean hasDot = false;boolean hasColon = false;
boolean hasColon = false;
public static boolean isInetAddress(String ipString) { return ipStringToBytes(ipString) != null; } @CheckForNull private static byte[] ipStringToBytes(String ipStringParam) { String ipString = ipStringParam; <extra_id_0> boolean hasDot = false; int percentIndex = -1; for (int i = 0; i < ipString.length(); i++) { char c = ipString.charAt(i); if (c == '.') { hasDot = true;