Skip to content

Commit 423c411

Browse files
committed
ConstructorArgumentValues exposed indexed arguments in the order of definition (SPR-5554)
1 parent a004ed1 commit 423c411

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

org.springframework.beans/src/main/java/org/springframework/beans/factory/config/ConstructorArgumentValues.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2008 the original author or authors.
2+
* Copyright 2002-2009 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -17,8 +17,8 @@
1717
package org.springframework.beans.factory.config;
1818

1919
import java.util.Collections;
20-
import java.util.HashMap;
2120
import java.util.Iterator;
21+
import java.util.LinkedHashMap;
2222
import java.util.LinkedList;
2323
import java.util.List;
2424
import java.util.Map;
@@ -42,7 +42,7 @@
4242
*/
4343
public class ConstructorArgumentValues {
4444

45-
private final Map<Integer, ValueHolder> indexedArgumentValues = new HashMap<Integer, ValueHolder>();
45+
private final Map<Integer, ValueHolder> indexedArgumentValues = new LinkedHashMap<Integer, ValueHolder>();
4646

4747
private final List<ValueHolder> genericArgumentValues = new LinkedList<ValueHolder>();
4848

0 commit comments

Comments
 (0)