Refactor blocking queue enum

pull/1113/head
machen 3 years ago committed by LiXuemin
parent be9202daf8
commit caf7b99328

@ -219,7 +219,7 @@ public enum BlockingQueueTypeEnum {
if (typeEnum == null) { if (typeEnum == null) {
return null; return null;
} }
return typeEnum.of(); return Objects.isNull(capacity) ? typeEnum.of() : typeEnum.of(capacity);
} }
private static final int DEFAULT_CAPACITY = 1024; private static final int DEFAULT_CAPACITY = 1024;

Loading…
Cancel
Save