Merge "Add entries to hidden api greylist"

This commit is contained in:
David Brazdil
2018-10-18 13:34:59 +00:00
committed by Gerrit Code Review
2 changed files with 4 additions and 0 deletions

View File

@@ -16,6 +16,7 @@
package com.google.android.collect; package com.google.android.collect;
import android.annotation.UnsupportedAppUsage;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collections; import java.util.Collections;
@@ -33,6 +34,7 @@ public class Lists {
* *
* @return a newly-created, initially-empty {@code ArrayList} * @return a newly-created, initially-empty {@code ArrayList}
*/ */
@UnsupportedAppUsage
public static <E> ArrayList<E> newArrayList() { public static <E> ArrayList<E> newArrayList() {
return new ArrayList<E>(); return new ArrayList<E>();
} }

View File

@@ -16,6 +16,7 @@
package com.google.android.collect; package com.google.android.collect;
import android.annotation.UnsupportedAppUsage;
import android.util.ArrayMap; import android.util.ArrayMap;
import java.util.HashMap; import java.util.HashMap;
@@ -29,6 +30,7 @@ public class Maps {
* *
* @return a newly-created, initially-empty {@code HashMap} * @return a newly-created, initially-empty {@code HashMap}
*/ */
@UnsupportedAppUsage
public static <K, V> HashMap<K, V> newHashMap() { public static <K, V> HashMap<K, V> newHashMap() {
return new HashMap<K, V>(); return new HashMap<K, V>();
} }