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
This commit is contained in:
Jiyong Park
2020-01-21 22:20:12 +09:00
parent 061d68a40c
commit 04701fe9f4

View File

@@ -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: ");