Revert "Revert "Unhide IpPrefix(InetAddress, int)""

This reverts commit 758ead6dd3.

Reason for revert: Re-landing changes not related to postsubmit failure

Change-Id: I2f705549d85af4ba45dc294e0a86d757490b1cd7
This commit is contained in:
Taras Antoshchuk
2021-12-19 11:54:56 +00:00
parent 758ead6dd3
commit 3bbbffe133
4 changed files with 4 additions and 3 deletions

View File

@@ -87,9 +87,7 @@ public final class IpPrefix implements Parcelable {
*
* @param address the IP address. Must be non-null.
* @param prefixLength the prefix length. Must be >= 0 and <= (32 or 128) (IPv4 or IPv6).
* @hide
*/
@SystemApi
public IpPrefix(@NonNull InetAddress address, @IntRange(from = 0, to = 128) int prefixLength) {
// We don't reuse the (byte[], int) constructor because it calls clone() on the byte array,
// which is unnecessary because getAddress() already returns a clone.