Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9b89e3d6 authored by Cole Faust's avatar Cole Faust
Browse files

Fix errorprone issues

IgnoredPureGetter, LenientFormatStringValidation, ProtocolBufferOrdinal, and ReturnValueIgnored.
https://errorprone.info/bugpatterns

Bug: 253827323
Test: RUN_ERROR_PRONE=true m javac-check
Change-Id: Ib0a0335aa04b36924adcbfecc830b7392c0e5bec
parent 7c9f1454
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -289,7 +289,7 @@ public final class Utils {
        }
        ThreadUtils.postOnBackgroundThread(() -> {
            for (Supplier<?> supplier : suppliers) {
                supplier.get();
                Object unused = supplier.get();
            }
            ThreadUtils.postOnMainThread(runnable);
        });
+1 −1
Original line number Diff line number Diff line
@@ -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!");
        }