Commit ab56f865 by olly Committed by Marc Baechinger

Suppress an ExtendsObjects violation

to support enabling this as a compile-time error.

More information: go/lsc-extends-object

PiperOrigin-RevId: 454582570
parent 33caabbc
...@@ -2600,6 +2600,7 @@ public final class Util { ...@@ -2600,6 +2600,7 @@ public final class Util {
* @param newFromIndex The new from index. * @param newFromIndex The new from index.
*/ */
@UnstableApi @UnstableApi
@SuppressWarnings("ExtendsObject") // See go/lsc-extends-object
public static <T extends Object> void moveItems( public static <T extends Object> void moveItems(
List<T> items, int fromIndex, int toIndex, int newFromIndex) { List<T> items, int fromIndex, int toIndex, int newFromIndex) {
ArrayDeque<T> removedItems = new ArrayDeque<>(); ArrayDeque<T> removedItems = new ArrayDeque<>();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment