From d2f5f212b909fcbd81a48d84d805005724e5303e Mon Sep 17 00:00:00 2001 From: olly Date: Mon, 13 Jun 2022 12:34:43 +0000 Subject: [PATCH] Suppress an ExtendsObjects violation to support enabling this as a compile-time error. More information: go/lsc-extends-object PiperOrigin-RevId: 454582570 --- .../src/main/java/com/google/android/exoplayer2/util/Util.java | 1 + 1 file changed, 1 insertion(+) diff --git a/library/common/src/main/java/com/google/android/exoplayer2/util/Util.java b/library/common/src/main/java/com/google/android/exoplayer2/util/Util.java index dbbc7b7343..19acbdcb42 100644 --- a/library/common/src/main/java/com/google/android/exoplayer2/util/Util.java +++ b/library/common/src/main/java/com/google/android/exoplayer2/util/Util.java @@ -2489,6 +2489,7 @@ public final class Util { * @param toIndex The index up to which elements should be moved (exclusive). * @param newFromIndex The new from index. */ + @SuppressWarnings("ExtendsObject") // See go/lsc-extends-object public static void moveItems( List items, int fromIndex, int toIndex, int newFromIndex) { ArrayDeque removedItems = new ArrayDeque<>();