mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Suppress an ExtendsObjects violation
to support enabling this as a compile-time error. More information: go/lsc-extends-object PiperOrigin-RevId: 454582570
This commit is contained in:
parent
33caabbc44
commit
ab56f865ea
@ -2600,6 +2600,7 @@ public final class Util {
|
||||
* @param newFromIndex The new from index.
|
||||
*/
|
||||
@UnstableApi
|
||||
@SuppressWarnings("ExtendsObject") // See go/lsc-extends-object
|
||||
public static <T extends Object> void moveItems(
|
||||
List<T> items, int fromIndex, int toIndex, int newFromIndex) {
|
||||
ArrayDeque<T> removedItems = new ArrayDeque<>();
|
||||
|
Loading…
x
Reference in New Issue
Block a user