From 04701fe9f4273df650c2cb8837acca1c75ea82ef Mon Sep 17 00:00:00 2001 From: Jiyong Park Date: Tue, 21 Jan 2020 22:20:12 +0900 Subject: [PATCH] Remove annotations from MmTelFeature.MmTelCapabilities.toString Object.toString() is a public API. Marking a method overriding it as @SystemApi or @TestApi doesn't make the method a system API or a test API. In fact, it breaks CtsSystemApiAnnotationTestCases which ensures that a Java symbol with @SystemApi annotation is in the API signature text. Removing the unnecessary annotation to fix the test. Note that the API signature file is not changed with this. Bug: 147812912 Test: atest CtsSystemApiAnnotationTestCases Change-Id: I47c07f072f5cffc64a8867f27889745065f73fd1 --- telephony/java/android/telephony/ims/feature/MmTelFeature.java | 1 - 1 file changed, 1 deletion(-) diff --git a/telephony/java/android/telephony/ims/feature/MmTelFeature.java b/telephony/java/android/telephony/ims/feature/MmTelFeature.java index 0d5a979e5894a..f3aea49789713 100644 --- a/telephony/java/android/telephony/ims/feature/MmTelFeature.java +++ b/telephony/java/android/telephony/ims/feature/MmTelFeature.java @@ -325,7 +325,6 @@ public class MmTelFeature extends ImsFeature { */ @NonNull @Override - @SystemApi @TestApi public String toString() { StringBuilder builder = new StringBuilder("MmTel Capabilities - ["); builder.append("Voice: ");