From cf22d1a29f73e90f4b276080c9a229f0a1f65bec Mon Sep 17 00:00:00 2001 From: Aaron Huang Date: Thu, 9 Jan 2020 20:52:55 +0800 Subject: [PATCH] Expose DhcpInfo parcelable interface implementation methods Parcelable class requires a CREATOR field be exposed. Bug: 139268426 Bug: 135998869 Test: atest FrameworksNetTests atest android.net.cts Change-Id: I41c68406d09014dda99f337add8c0db0298b0582 --- core/java/android/net/DhcpInfo.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/java/android/net/DhcpInfo.java b/core/java/android/net/DhcpInfo.java index 98bab44e19..912df67a0b 100644 --- a/core/java/android/net/DhcpInfo.java +++ b/core/java/android/net/DhcpInfo.java @@ -16,8 +16,8 @@ package android.net; -import android.os.Parcelable; import android.os.Parcel; +import android.os.Parcelable; /** * A simple object for retrieving the results of a DHCP request. @@ -67,12 +67,12 @@ public class DhcpInfo implements Parcelable { buf.append(NetworkUtils.intToInetAddress(addr).getHostAddress()); } - /** Implement the Parcelable interface {@hide} */ + /** Implement the Parcelable interface */ public int describeContents() { return 0; } - /** Implement the Parcelable interface {@hide} */ + /** Implement the Parcelable interface */ public void writeToParcel(Parcel dest, int flags) { dest.writeInt(ipAddress); dest.writeInt(gateway); @@ -83,7 +83,7 @@ public class DhcpInfo implements Parcelable { dest.writeInt(leaseDuration); } - /** Implement the Parcelable interface {@hide} */ + /** Implement the Parcelable interface */ public static final @android.annotation.NonNull Creator CREATOR = new Creator() { public DhcpInfo createFromParcel(Parcel in) {