mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-15 22:44:57 +00:00
Generic fix
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@756852 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6cf9814780
commit
07c1324202
@ -241,7 +241,7 @@ public static Map<Object, Object> toMap(Object[] array) {
|
|||||||
for (int i = 0; i < array.length; i++) {
|
for (int i = 0; i < array.length; i++) {
|
||||||
Object object = array[i];
|
Object object = array[i];
|
||||||
if (object instanceof Map.Entry) {
|
if (object instanceof Map.Entry) {
|
||||||
Map.Entry entry = (Map.Entry) object;
|
Map.Entry<?,?> entry = (Map.Entry<?,?>) object;
|
||||||
map.put(entry.getKey(), entry.getValue());
|
map.put(entry.getKey(), entry.getValue());
|
||||||
} else if (object instanceof Object[]) {
|
} else if (object instanceof Object[]) {
|
||||||
Object[] entry = (Object[]) object;
|
Object[] entry = (Object[]) object;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user