--- old/src/java.base/share/classes/java/util/Collections.java 2017-12-08 15:51:17.103110774 -0800 +++ new/src/java.base/share/classes/java/util/Collections.java 2017-12-08 15:51:16.895108710 -0800 @@ -5398,8 +5398,7 @@ * Adds all of the specified elements to the specified collection. * Elements to be added may be specified individually or as an array. * The behavior of this convenience method is identical to that of - * {@code c.addAll(Arrays.asList(elements))}, but this method is likely - * to run significantly faster under most implementations. + * {@code c.addAll(Arrays.asList(elements))}. * *

When elements are specified individually, this method provides a * convenient way to add a few elements to an existing collection: @@ -5422,11 +5421,9 @@ * @since 1.5 */ @SafeVarargs + @SuppressWarnings("varargs") public static boolean addAll(Collection c, T... elements) { - boolean result = false; - for (T element : elements) - result |= c.add(element); - return result; + return c.addAll(Arrays.asList(elements)); } /**