activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r961170 - /activemq/sandbox/activemq-apollo-actor/activemq-util/src/main/scala/org/apache/activemq/util/list/SequenceSet.java
Date Wed, 07 Jul 2010 04:13:29 GMT
Author: chirino
Date: Wed Jul  7 04:13:29 2010
New Revision: 961170

URL: http://svn.apache.org/viewvc?rev=961170&view=rev
Log:
fixing contains method.

Modified:
    activemq/sandbox/activemq-apollo-actor/activemq-util/src/main/scala/org/apache/activemq/util/list/SequenceSet.java

Modified: activemq/sandbox/activemq-apollo-actor/activemq-util/src/main/scala/org/apache/activemq/util/list/SequenceSet.java
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-apollo-actor/activemq-util/src/main/scala/org/apache/activemq/util/list/SequenceSet.java?rev=961170&r1=961169&r2=961170&view=diff
==============================================================================
--- activemq/sandbox/activemq-apollo-actor/activemq-util/src/main/scala/org/apache/activemq/util/list/SequenceSet.java
(original)
+++ activemq/sandbox/activemq-apollo-actor/activemq-util/src/main/scala/org/apache/activemq/util/list/SequenceSet.java
Wed Jul  7 04:13:29 2010
@@ -276,7 +276,7 @@ public class SequenceSet extends LinkedN
         }
         Sequence sequence = getHead();
         while (sequence != null) {
-            if (sequence.first <= first ) {
+            if (sequence.first <= first && first <= sequence.last ) {
                 return last <= sequence.last ;
             }
             sequence = sequence.getNext();



Mime
View raw message