From d0fdf42dcd93b8aea3fb78575da4ba01f4353048 Mon Sep 17 00:00:00 2001 From: Looly Date: Mon, 17 Jun 2024 15:46:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=B6=E9=97=B4=E6=A0=BC=E5=BC=8F=E5=8C=96?= =?UTF-8?q?=E5=B7=A5=E5=85=B7=E6=94=AF=E6=8C=81=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E5=8D=95=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/dromara/hutool/core/date/BetweenFormatter.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/hutool-core/src/main/java/org/dromara/hutool/core/date/BetweenFormatter.java b/hutool-core/src/main/java/org/dromara/hutool/core/date/BetweenFormatter.java index d32ed7c5a..29727ab75 100644 --- a/hutool-core/src/main/java/org/dromara/hutool/core/date/BetweenFormatter.java +++ b/hutool-core/src/main/java/org/dromara/hutool/core/date/BetweenFormatter.java @@ -31,10 +31,6 @@ import java.util.function.Function; public class BetweenFormatter implements Serializable { private static final long serialVersionUID = 1L; - /** - * 单位格式化器 - */ - public static Function DEFAULT_LEVEL_FORMATTER = (level) -> level.name; /** * 时长毫秒数 */ @@ -55,7 +51,7 @@ public class BetweenFormatter implements Serializable { /** * 格式化器 */ - private Function levelFormatter = DEFAULT_LEVEL_FORMATTER; + private Function levelFormatter = Level::getName; /** * 分隔符 */