From 4c1dd06339735b829287c81b6737d3d772b444a2 Mon Sep 17 00:00:00 2001 From: Aaron Huang Date: Thu, 28 Nov 2019 14:17:32 +0800 Subject: [PATCH] Add IpConfiguration parcelable interface implementation to system API API lint robot warnings that parcelable requires writeToParcel and describeContents. Bug: 139268426 Bug: 135998869 Test: atest android.net.cts atest android.net.wifi.cts atest FrameworksNetTests ./frameworks/opt/net/wifi/tests/wifitests/runtests.sh Change-Id: I7acf000c468788c3fdcb47f8601762e7804ab940 --- core/java/android/net/IpConfiguration.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/core/java/android/net/IpConfiguration.java b/core/java/android/net/IpConfiguration.java index 143467b15f..dddb64d8ce 100644 --- a/core/java/android/net/IpConfiguration.java +++ b/core/java/android/net/IpConfiguration.java @@ -191,18 +191,12 @@ public final class IpConfiguration implements Parcelable { 83 * httpProxy.hashCode(); } - /** - * 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(@NonNull Parcel dest, int flags) { dest.writeString(ipAssignment.name()); dest.writeString(proxySettings.name());