Added missed parameter

This commit is contained in:
nathan 2015-07-07 00:35:39 +02:00
parent 42c26c3b58
commit 8f8aa8e828
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ class UnsafeObjectPool<T> implements ObjectPool<T> {
UnsafeObjectPool(final PoolableObject<T> poolableObject, final int size) throws Throwable {
this.poolableObject = poolableObject;
int newSize = Pow2.roundToPowerOfTwo(size);
objects = new MpmcArrayQueue(newSize);
objects = new MpmcArrayQueue<T>(newSize);
for (int x = 0; x < newSize; x++) {
objects.offer(poolableObject.create());