From 1961871f40205cba0e5f56f328ff4c5af026540e Mon Sep 17 00:00:00 2001 From: Cody Kesting Date: Fri, 15 Mar 2019 16:22:08 -0700 Subject: [PATCH] Add class comment to avoid extending ServiceState class. ServiceState implements Parcelable and all 'Parcelables' are required to be final, per the Android API Guidelines (go/android-api-guidelines). This won't be changed for historical reasons, but clients should avoid extending this class. Bug: 128865231 Test: non-functional change that won't impact tests. atest CtsTelephonyTestCases:ServiceStateTest Change-Id: Ib369f1449a3e085f404fff1c706fda0b76d42890 --- telephony/java/android/telephony/ServiceState.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/telephony/java/android/telephony/ServiceState.java b/telephony/java/android/telephony/ServiceState.java index 4b15aac779403..ee6a6eaa781e3 100644 --- a/telephony/java/android/telephony/ServiceState.java +++ b/telephony/java/android/telephony/ServiceState.java @@ -53,6 +53,9 @@ import java.util.stream.Collectors; *
  • Operator name, short name and numeric id *
  • Network selection mode * + * + * For historical reasons this class is not declared as final; however, + * it should be treated as though it were final. */ public class ServiceState implements Parcelable {