mirror of https://github.com/apache/activemq.git
fix mbean test failure - get values in the right order from the pending list
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1424435 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
87871346c2
commit
fb5a97276b
|
@ -149,8 +149,9 @@ public class OrderedPendingList implements PendingList {
|
|||
@Override
|
||||
public Collection<MessageReference> values() {
|
||||
List<MessageReference> messageReferences = new ArrayList<MessageReference>();
|
||||
for(PendingNode pendingNode : map.values()) {
|
||||
messageReferences.add(pendingNode.getMessage());
|
||||
Iterator<MessageReference> iterator = iterator();
|
||||
while (iterator.hasNext()) {
|
||||
messageReferences.add(iterator.next());
|
||||
}
|
||||
return messageReferences;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue