summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Cole Faust <colefaust@google.com> 2024-10-01 16:28:05 -0700
committer Cole Faust <colefaust@google.com> 2024-10-01 16:30:27 -0700
commitd96c7f200686298b4502e4276e8659352aef589e (patch)
tree5e8459e0798c85d2ef341f9efd8f7edac22a890d
parent64e46a09e6023dff77e68f3764555c412708401d (diff)
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
-rw-r--r--packages/SystemUI/tests/src/com/android/systemui/qs/tiles/dialog/InternetDialogDelegateControllerTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/dialog/InternetDialogDelegateControllerTest.java b/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/dialog/InternetDialogDelegateControllerTest.java
index 2f8f45cb0197..0b9c06f2dbe2 100644
--- a/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/dialog/InternetDialogDelegateControllerTest.java
+++ b/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/dialog/InternetDialogDelegateControllerTest.java
@@ -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