mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-06-10 19:26:54 +08:00
修复BoundedPriorityBlockingQueue#offer方法一处细节问题
This commit is contained in:
@@ -49,7 +49,7 @@ public class BoundedPriorityBlockingQueue<E> extends PriorityBlockingQueue<E> {
|
||||
if (size() >= capacity) {
|
||||
E head = peek();
|
||||
if (this.comparator().compare(e, head) <= 0) {
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
// 当队列满时,就要淘汰顶端队列
|
||||
poll();
|
||||
|
||||
Reference in New Issue
Block a user