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

Commit f8aed676 authored by Cole Faust's avatar Cole Faust
Browse files

Fix array-related errorprone warnings

The ArrayEquals, ArrayHashCode, ArrayToString, and
ArraysAsListPrimitiveArray errorprone findings were
demoted from errors to warnings. Fix existing
occurrences of them so they can be made errors again.

Bug: 242630963
Test: RUN_ERROR_PRONE=true m javac-check
Change-Id: Iff306b163a7142863148c877fdde8a8823552ab2
parent 9f11d003
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -33,6 +33,7 @@ import com.android.documentsui.base.UserId;
import com.google.common.collect.Lists;
import com.google.common.collect.Lists;
import com.google.common.truth.Correspondence;
import com.google.common.truth.Correspondence;


import java.util.Arrays;
import java.util.List;
import java.util.List;
import java.util.Objects;
import java.util.Objects;


@@ -44,7 +45,7 @@ public class ProvidersAccessTest extends AndroidTestCase {
            Correspondence.from((@Nullable RootInfo actual, @Nullable RootInfo expected) -> {
            Correspondence.from((@Nullable RootInfo actual, @Nullable RootInfo expected) -> {
                    return actual != null && expected != null
                    return actual != null && expected != null
                            && Objects.equals(actual.userId, expected.userId)
                            && Objects.equals(actual.userId, expected.userId)
                            && Objects.equals(actual.derivedMimeTypes, expected.derivedMimeTypes);
                            && Arrays.equals(actual.derivedMimeTypes, expected.derivedMimeTypes);
            }, "has same userId and mimeTypes as in");
            }, "has same userId and mimeTypes as in");


    private static RootInfo mNull = buildForMimeTypes((String[]) null);
    private static RootInfo mNull = buildForMimeTypes((String[]) null);