Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / base / android / java / src / org / chromium / base / CollectionUtil.java
index 7e7e0c9..4a4c754 100644 (file)
@@ -17,12 +17,14 @@ import java.util.HashSet;
 public final class CollectionUtil {
     private CollectionUtil() {}
 
+    @SafeVarargs
     public static <E> HashSet<E> newHashSet(E... elements) {
         HashSet<E> set = new HashSet<E>(elements.length);
         Collections.addAll(set, elements);
         return set;
     }
 
+    @SafeVarargs
     public static <E> ArrayList<E> newArrayList(E... elements) {
         ArrayList<E> list = new ArrayList<E>(elements.length);
         Collections.addAll(list, elements);