This commit is contained in:
地平线
2015-08-24 17:23:07 +08:00
parent 7018dc06a5
commit 0ce0564cb5

View File

@@ -77,7 +77,7 @@ public final class ObjectPool<T> {
if (e != null && recycler.test(e)) { if (e != null && recycler.test(e)) {
if (cycleCounter != null) cycleCounter.incrementAndGet(); if (cycleCounter != null) cycleCounter.incrementAndGet();
if (debug) queue.forEach(t -> { if (debug) queue.forEach(t -> {
if (t == e) logger.log(Level.WARNING, "repeat offer the same object(" + e + ")", new Exception()); if (t == e) logger.log(Level.WARNING, "[" + Thread.currentThread().getName() + "] repeat offer the same object(" + e + ")", new Exception());
}); });
queue.offer(e); queue.offer(e);
} }