Revert varargs parameter to plain array as it breaks tests on jdk 1.5 and 1.6.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1494275 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas Neidhart 2013-06-18 20:02:36 +00:00
parent b1162d812e
commit 125c820e8d
1 changed files with 1 additions and 1 deletions

View File

@ -1140,7 +1140,7 @@ public class MapUtils {
* @since 3.2
*/
@SuppressWarnings("unchecked") // As per Javadoc throws CCE for invalid array contents
public static <K, V> Map<K, V> putAll(final Map<K, V> map, final Object... array) {
public static <K, V> Map<K, V> putAll(final Map<K, V> map, final Object[] array) {
map.size(); // force NPE
if (array == null || array.length == 0) {
return map;