Merge "Fix errorprone issues" into main am: eb2e9e4776 am: bdd44e5242

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

Change-Id: I1249c4cdae2cee729ac60d9e41507c7dc684621e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot
2024-09-11 18:22:01 +00:00
committed by Automerger Merge Worker
2 changed files with 2 additions and 2 deletions

View File

@@ -288,7 +288,7 @@ public final class Utils {
}
ThreadUtils.postOnBackgroundThread(() -> {
for (Supplier<?> supplier : suppliers) {
supplier.get();
Object unused = supplier.get();
}
ThreadUtils.postOnMainThread(runnable);
});

View File

@@ -74,7 +74,7 @@ public class NetworkRequestErrorDialogFragmentTest {
@Test
public void getConstructor_shouldNotThrowNoSuchMethodException() {
try {
NetworkRequestErrorDialogFragment.class.getConstructor();
Object unused = NetworkRequestErrorDialogFragment.class.getConstructor();
} catch (NoSuchMethodException e) {
fail("No default constructor for configuration change!");
}