将 lambda 替换为方法引用。

feature/net-util
ZhouXY108 2023-04-15 02:40:45 +08:00
parent 2babb5fb2d
commit 3218a2289a
1 changed files with 1 additions and 1 deletions

View File

@ -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) {