forked from plusone/plusone-commons
将 lambda 替换为方法引用。
parent
2babb5fb2d
commit
3218a2289a
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue