Collections usage

This commit is contained in:
Sam Harwell 2013-02-19 15:30:46 -06:00
parent 24f30a607e
commit d8a8466a90
1 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ namespace Antlr4.Runtime.Dfa
private readonly int[] keys;
private readonly IList<T> values;
private readonly List<T> values;
public SparseEdgeMap(int minIndex, int maxIndex) : this(minIndex, maxIndex, DefaultMaxSize
)
@ -65,7 +65,7 @@ namespace Antlr4.Runtime.Dfa
}
keys = Arrays.CopyOf(map.keys, maxSparseSize);
values = new List<T>(maxSparseSize);
Sharpen.Collections.AddAll(values, map.values);
values.AddRange(map.values);
}
public virtual int[] GetKeys()