remove println messages from remove()

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@488783 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2006-12-19 19:41:41 +00:00
parent 419ed2ee91
commit f6972ec84a
1 changed files with 7 additions and 12 deletions

View File

@ -94,18 +94,13 @@ public class VMPendingMessageCursor extends AbstractPendingMessageCursor{
list.clear();
}
public void remove(MessageReference node) {
boolean matched = false;
int size = list.size();
for (Iterator i = list.iterator();i.hasNext();) {
MessageReference ref = (MessageReference)i.next();
System.err.println("MATCHIG " + node.getMessageId() + " AGAINST " + ref.getMessageId());
if(node.getMessageId().equals(ref.getMessageId())){
i.remove();
matched = true;
break;
}
public void remove(MessageReference node){
for(Iterator i=list.iterator();i.hasNext();){
MessageReference ref=(MessageReference)i.next();
if(node.getMessageId().equals(ref.getMessageId())){
i.remove();
break;
}
}
System.err.println("REMOVED " + node.getMessageId() + " = " + matched + " presize = " + size + " size now = " + list.size());
}
}