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>
This commit is contained in:
@@ -289,7 +289,7 @@ public final class Utils {
|
|||||||
}
|
}
|
||||||
ThreadUtils.postOnBackgroundThread(() -> {
|
ThreadUtils.postOnBackgroundThread(() -> {
|
||||||
for (Supplier<?> supplier : suppliers) {
|
for (Supplier<?> supplier : suppliers) {
|
||||||
supplier.get();
|
Object unused = supplier.get();
|
||||||
}
|
}
|
||||||
ThreadUtils.postOnMainThread(runnable);
|
ThreadUtils.postOnMainThread(runnable);
|
||||||
});
|
});
|
||||||
|
@@ -74,7 +74,7 @@ public class NetworkRequestErrorDialogFragmentTest {
|
|||||||
@Test
|
@Test
|
||||||
public void getConstructor_shouldNotThrowNoSuchMethodException() {
|
public void getConstructor_shouldNotThrowNoSuchMethodException() {
|
||||||
try {
|
try {
|
||||||
NetworkRequestErrorDialogFragment.class.getConstructor();
|
Object unused = NetworkRequestErrorDialogFragment.class.getConstructor();
|
||||||
} catch (NoSuchMethodException e) {
|
} catch (NoSuchMethodException e) {
|
||||||
fail("No default constructor for configuration change!");
|
fail("No default constructor for configuration change!");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user