Refactor blocking queue enum

pull/1103/head
machen 1 year ago
parent d369391aca
commit fd6b4a3e34

@ -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