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

Commit 2483b320 authored by Cole Faust's avatar Cole Faust
Browse files

Fix DoubleBraceInitialization errorprone issues

https://errorprone.info/bugpattern/DoubleBraceInitialization

Flag: EXEMPT refactor
Bug: 253827323
Test: m RUN_ERROR_PRONE=true javac-check
Change-Id: Idf52035a720f051a43553b53a89a37131d4e208b
parent eb79f882
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -48,6 +48,7 @@ import org.robolectric.annotation.LooperMode;
import org.robolectric.shadows.ShadowApplication;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;

@RunWith(RobolectricTestRunner.class)
@@ -175,12 +176,7 @@ public class AppChannelsBypassingDndPreferenceControllerTest {
                NotificationManager.IMPORTANCE_DEFAULT));

        ParceledListSlice<NotificationChannelGroup> groups = new ParceledListSlice<>(
                new ArrayList<NotificationChannelGroup>() {
                    {
                        add(group1);
                        add(group2);
                    }
                }
                Arrays.asList(group1, group2)
        );

        when(mBackend.getGroups(eq(mAppRow.pkg), eq(mAppRow.uid))).thenReturn(groups);