From 3218a2289a08d8086b7b19a818b69f1c4b848a01 Mon Sep 17 00:00:00 2001 From: ZhouXY108 Date: Sat, 15 Apr 2023 02:40:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=20lambda=20=E6=9B=BF=E6=8D=A2?= =?UTF-8?q?=E4=B8=BA=E6=96=B9=E6=B3=95=E5=BC=95=E7=94=A8=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/xyz/zhouxy/plusone/commons/util/RestfulResult.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/xyz/zhouxy/plusone/commons/util/RestfulResult.java b/src/main/java/xyz/zhouxy/plusone/commons/util/RestfulResult.java index 9128b0f..da6dee6 100644 --- a/src/main/java/xyz/zhouxy/plusone/commons/util/RestfulResult.java +++ b/src/main/java/xyz/zhouxy/plusone/commons/util/RestfulResult.java @@ -96,7 +96,7 @@ public class RestfulResult { } public static Builder successIf(final BooleanSupplier booleanSupplier) { - return new Builder(booleanSupplier, () -> success()); + return new Builder(booleanSupplier, RestfulResult::success); } public static Builder successIf(final boolean condition, final String msg) {