Skip to content

Commit

Permalink
ns
Browse files Browse the repository at this point in the history
  • Loading branch information
belaban committed Oct 15, 2024
1 parent 667adbf commit 22c26a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/org/jgroups/util/FastArray.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ public class FastArray<T> implements Iterable<T>, List<T> {
protected int increment; // if 0, use the built-in resize (new capacity: old capacity * 1.5)
protected int print_limit=20; // max numnber of elements to be printed in toString

public FastArray() {
this(16);
}

public FastArray(int capacity) {
elements=(T[])new Object[capacity];
}
Expand Down

0 comments on commit 22c26a8

Please sign in to comment.