Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5a8940a3 authored by Jiyong Park's avatar Jiyong Park
Browse files

Remove @SystemApi from inherited methods of AudioFocusInfo

Since the inherited methods hashCode and equals from the class Object is
already a public API, they don't need to be marked as SystemApi; they
haven't been appear in system-current.txt.

Having annotation on such members hasn't been harmful,
but will soon trigger CTS failures when we do the exact match for
SystemAPIs; a runtime entity annotated as @SystemApi have to exist in
the documented API (e.g. system-current.txt). So, removing the bogus
annotations.

Bug: 67891551
Test: m -j does not require m update-system-api
Change-Id: I40d60ed524d660f47b5c569980c28c6f0bd83db9
parent ea713a38
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -130,13 +130,11 @@ public final class AudioFocusInfo implements Parcelable {
        dest.writeInt(mSdkTarget);
    }

    @SystemApi
    @Override
    public int hashCode() {
        return Objects.hash(mAttributes, mClientUid, mClientId, mPackageName, mGainRequest, mFlags);
    }

    @SystemApi
    @Override
    public boolean equals(Object obj) {
        if (this == obj)