activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r1424435 - /activemq/trunk/activemq-broker/src/main/java/org/apache/activemq/broker/region/cursors/OrderedPendingList.java
Date Thu, 20 Dec 2012 12:45:00 GMT
Author: dejanb
Date: Thu Dec 20 12:44:59 2012
New Revision: 1424435

URL: http://svn.apache.org/viewvc?rev=1424435&view=rev
Log:
fix mbean test failure - get values in the right order from the pending list

Modified:
    activemq/trunk/activemq-broker/src/main/java/org/apache/activemq/broker/region/cursors/OrderedPendingList.java

Modified: activemq/trunk/activemq-broker/src/main/java/org/apache/activemq/broker/region/cursors/OrderedPendingList.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-broker/src/main/java/org/apache/activemq/broker/region/cursors/OrderedPendingList.java?rev=1424435&r1=1424434&r2=1424435&view=diff
==============================================================================
--- activemq/trunk/activemq-broker/src/main/java/org/apache/activemq/broker/region/cursors/OrderedPendingList.java
(original)
+++ activemq/trunk/activemq-broker/src/main/java/org/apache/activemq/broker/region/cursors/OrderedPendingList.java
Thu Dec 20 12:44:59 2012
@@ -149,8 +149,9 @@ public class OrderedPendingList implemen
     @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;
     }



Mime
View raw message