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

Skip to content
Commit 6549ebff authored by Colin Cross's avatar Colin Cross
Browse files

Annotate NetworkInformationShimImpl for api 31 with @RequiresApi(S)

An update to lint finds a new error:
packages/modules/NetworkStack/apishim/31/com/android/networkstack/apishim/api31/NetworkInformationShimImpl.java:35: Error: Extending NetworkInformationShimImpl requires API level 30 (current min is 29): NetworkInformationShimImpl [NewApi]
        extends com.android.networkstack.apishim.api30.NetworkInformationShimImpl {
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Annotate api31.NetworkInformationShimImpl with @RequiresApi(S).

Also remove the unnecesary useApiAboveR and useApiAboveQ.

Test: m lint-check
Change-Id: Ib86978557972e6ee8d0288770e7cb8fc758a6219
Merged-In: Ib86978557972e6ee8d0288770e7cb8fc758a6219
parent ebc22a81
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment