Skip to content
Browse files

replaced LinkedList with ArrayList

  • Loading branch information...
1 parent 955abd1 commit 860222ae26e8f722711342601e0073f0c8743c5b @belaban committed Dec 28, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/org/jgroups/util/Seqno.java
View
3 src/org/jgroups/util/Seqno.java
@@ -1,5 +1,6 @@
package org.jgroups.util;
+import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedList;
@@ -70,7 +71,7 @@ public int size() {
}
public Collection<Range> getMessagesToRetransmit() {
- final Collection<Range> retval=new LinkedList<Range>();
+ final Collection<Range> retval=new ArrayList<Range>(1);
if(!received())
retval.add(new Range(low, low));
return retval;

0 comments on commit 860222a

Please sign in to comment.
Something went wrong with that request. Please try again.