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

Commit d96c7f20 authored by Cole Faust's avatar Cole Faust
Browse files

Fix ReturnValueIgnored errorprone issues

https://errorprone.info/bugpattern/ReturnValueIgnored

Bug: 253827323
Flag: EXEMPT bugfix
Test: RUN_ERROR_PRONE=true m javac-check
Change-Id: I8147c72bc9bd578c4c564e9d6e3dd4b2e3999416
parent 64e46a09
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -901,7 +901,7 @@ public class InternetDialogDelegateControllerTest extends SysuiTestCase {

        // 1st time is onStart(), 2nd time is getActiveAutoSwitchNonDdsSubId()
        verify(mTelephonyManager, times(2)).registerTelephonyCallback(any(), any());
        assertThat(mInternetDialogController.mSubIdTelephonyCallbackMap.size() == 2);
        assertThat(mInternetDialogController.mSubIdTelephonyCallbackMap.size()).isEqualTo(2);

        // Adds non DDS subId again
        doReturn(SUB_ID2).when(info).getSubscriptionId();
@@ -912,7 +912,7 @@ public class InternetDialogDelegateControllerTest extends SysuiTestCase {

        // Does not add due to cached subInfo in mSubIdTelephonyCallbackMap.
        verify(mTelephonyManager, times(2)).registerTelephonyCallback(any(), any());
        assertThat(mInternetDialogController.mSubIdTelephonyCallbackMap.size() == 2);
        assertThat(mInternetDialogController.mSubIdTelephonyCallbackMap.size()).isEqualTo(2);
    }

    @Test