bytes.copyTo(ipv6, 0, 0, min(ipv6.length, bytes.size()));
return InetAddresses.toAddrString(InetAddress.getByAddress(ipv6));
} catch (UnknownHostException e) {
throw new IllegalArgumentException("ip=" + BaseEncoding.base16().encode(bytes.toByteArray()));
}
<BUG>}
protected static String decodeUri(String uri) {</BUG>
try {
return URLDecoder.decode(uri, "UTF-8");
} catch (UnsupportedEncodingException e) {

bytes.copyTo(ipv6, 0, 0, min(ipv6.length, bytes.size()));
return InetAddresses.toAddrString(InetAddress.getByAddress(ipv6));
} catch (UnknownHostException e) {
throw new IllegalArgumentException("ip=" + BaseEncoding.base16().encode(bytes.toByteArray()));
}
}
public static String toBase64(ByteString bytes) {
return Base64.getEncoder().withoutPadding().encodeToString(bytes.toByteArray());
}
protected static String decodeUri(String uri) {
try {
return URLDecoder.decode(uri, "UTF-8");
} catch (UnsupportedEncodingException e) {
