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:
parent
b1162d812e
commit
125c820e8d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue