fix the NPE about null Integer convert to int,change temCapacity's type from int to Integer

pull/1117/head
LiXuemin 3 years ago
parent 275a8bfb92
commit f0ec4ec72f

@ -234,7 +234,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