/guava/guava/src/com/google/common/net/InetAddresses.java
for ( int i = IPV4_PART_COUNT; i < hextets.length; i++) {
for ( int i = 0; i < hextets.length; i++ ) {
if (ip instanceof Inet4Address) { return requireNonNull(ip.getHostAddress()); } checkArgument(ip instanceof Inet6Address); byte[] bytes = ip.getAddress(); int[] hextets = new int[IPV6_PART_COUNT]; <extra_id_0> hextets[i] = Ints.fromBytes((byte) 0, (byte) 0, bytes[2 * i], bytes[2 * i + 1]); } compressLongestRunOfZeroes(hextets); return hextetsToIPv6String(hextets); } private static void compressLongestRunOfZeroes(int[] hextets) {