Merge "Fix errorprone issues" into main am: eb2e9e4776

Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3258078

Change-Id: Idaa9fc8fe53588c16959948de0f32ab74d5187ac
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/src/com/android/settings/bluetooth/Utils.java b/src/com/android/settings/bluetooth/Utils.java
index f6288b2..ea293b1 100644
--- a/src/com/android/settings/bluetooth/Utils.java
+++ b/src/com/android/settings/bluetooth/Utils.java
@@ -289,7 +289,7 @@
         }
         ThreadUtils.postOnBackgroundThread(() -> {
             for (Supplier<?> supplier : suppliers) {
-                supplier.get();
+                Object unused = supplier.get();
             }
             ThreadUtils.postOnMainThread(runnable);
         });
diff --git a/tests/robotests/src/com/android/settings/wifi/NetworkRequestErrorDialogFragmentTest.java b/tests/robotests/src/com/android/settings/wifi/NetworkRequestErrorDialogFragmentTest.java
index ada47d0..099095c 100644
--- a/tests/robotests/src/com/android/settings/wifi/NetworkRequestErrorDialogFragmentTest.java
+++ b/tests/robotests/src/com/android/settings/wifi/NetworkRequestErrorDialogFragmentTest.java
@@ -74,7 +74,7 @@
     @Test
     public void getConstructor_shouldNotThrowNoSuchMethodException() {
         try {
-            NetworkRequestErrorDialogFragment.class.getConstructor();
+            Object unused = NetworkRequestErrorDialogFragment.class.getConstructor();
         } catch (NoSuchMethodException e) {
             fail("No default constructor for configuration change!");
         }