From 19cd2680f31d5b367e86d04cd23c82adbc79d97a Mon Sep 17 00:00:00 2001 From: wayn <1669738430@qq.com> Date: Fri, 13 Aug 2021 10:28:16 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E5=95=86=E5=9F=8E):=20=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/wayn/common/util/AsyncExecutorUtil.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/waynboot-common/src/main/java/com/wayn/common/util/AsyncExecutorUtil.java b/waynboot-common/src/main/java/com/wayn/common/util/AsyncExecutorUtil.java index af4b5e2..7f21210 100644 --- a/waynboot-common/src/main/java/com/wayn/common/util/AsyncExecutorUtil.java +++ b/waynboot-common/src/main/java/com/wayn/common/util/AsyncExecutorUtil.java @@ -12,12 +12,10 @@ import java.util.concurrent.TimeUnit; */ public class AsyncExecutorUtil { - private static Timer timer = null; + private static Timer timer; static { - if (timer == null) { - timer = new Timer("timer-executor-thread"); - } + timer = new Timer("timer-executor-thread"); }