Fix the bug of getting the number of threads

pull/247/head
chen.ma 3 years ago
parent 78dfd574d4
commit 0273de198e

@ -114,10 +114,10 @@ public class ThreadPoolParameterInfo implements ThreadPoolParameter, Serializabl
private Integer allowCoreThreadTimeOut; private Integer allowCoreThreadTimeOut;
public Integer getCorePoolSize() { public Integer getCorePoolSize() {
return this.corePoolSize == null ? this.coreSize : null; return this.corePoolSize == null ? this.coreSize : this.corePoolSize;
} }
public Integer getMaximumPoolSize() { public Integer getMaximumPoolSize() {
return this.maximumPoolSize == null ? this.maxSize : null; return this.maximumPoolSize == null ? this.maxSize : this.corePoolSize;
} }
} }

Loading…
Cancel
Save