This commit is contained in:
kamhung
2015-11-30 17:55:17 +08:00
parent c5b99daa64
commit cc9dae5c90

View File

@@ -55,7 +55,7 @@ public final class ObjectPool<T> implements Supplier<T> {
this.creator = creator;
this.prepare = prepare;
this.recycler = recycler;
this.queue = new ArrayBlockingQueue<>(Math.max(Runtime.getRuntime().availableProcessors() * 2, max));
this.queue = new ArrayBlockingQueue(Math.max(Runtime.getRuntime().availableProcessors() * 2, max));
this.debug = logger.isLoggable(Level.FINER);
}