commit | eb2e9e47765195ca1082706c58989b6746a69ecf | [log] [tgz] |
---|---|---|
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | Wed Sep 11 18:08:19 2024 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Wed Sep 11 18:08:19 2024 +0000 |
tree | c46408fbf51a03d4cac7b2e1d709308a356aae6c | |
parent | dd578b827492697498697a17bbb976585e8481f8 [diff] | |
parent | 9b89e3d64356072b135217d8f180a474d281bf26 [diff] |
Merge "Fix errorprone issues" into main
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!"); }