diff --git a/hippo4j-spring-boot/hippo4j-spring-boot-starter/src/main/java/cn/hippo4j/starter/core/ServerThreadPoolDynamicRefresh.java b/hippo4j-spring-boot/hippo4j-spring-boot-starter/src/main/java/cn/hippo4j/starter/core/ServerThreadPoolDynamicRefresh.java index d0b8facc..dcd967bd 100644 --- a/hippo4j-spring-boot/hippo4j-spring-boot-starter/src/main/java/cn/hippo4j/starter/core/ServerThreadPoolDynamicRefresh.java +++ b/hippo4j-spring-boot/hippo4j-spring-boot-starter/src/main/java/cn/hippo4j/starter/core/ServerThreadPoolDynamicRefresh.java @@ -123,7 +123,7 @@ public class ServerThreadPoolDynamicRefresh implements ThreadPoolDynamicRefresh * @param parameter */ public void changePoolInfo(ThreadPoolExecutor executor, PoolParameter parameter) { - if (parameter.getCoreSize() != null&¶meter.getMaxSize() !=null) { + if (parameter.getCoreSize() != null && parameter.getMaxSize() != null) { if (parameter.getMaxSize() < executor.getMaximumPoolSize()) { executor.setCorePoolSize(parameter.getCoreSize()); executor.setMaximumPoolSize(parameter.getMaxSize()); @@ -131,7 +131,7 @@ public class ServerThreadPoolDynamicRefresh implements ThreadPoolDynamicRefresh executor.setMaximumPoolSize(parameter.getMaxSize()); executor.setCorePoolSize(parameter.getCoreSize()); } - }else { + } else { if (parameter.getMaxSize() != null) { executor.setMaximumPoolSize(parameter.getMaxSize()); }