fix: 修复Integer capacity为null转为int的NPE问题。int类型临时容量参数改为Integer

pull/1112/head
LiXuemin 3 years ago
parent 09cb04c71d
commit d4e4884b24

@ -227,7 +227,7 @@ public enum BlockingQueueTypeEnum {
.map(each -> each.generateBlockingQueue())
.findFirst()
.orElseGet(() -> {
int temCapacity = capacity;
Integer temCapacity = capacity;
if (capacity == null || capacity <= 0) {
temCapacity = DEFAULT_CAPACITY;
}

Loading…
Cancel
Save