forked from plusone/plusone-commons
将 lambda 替换为方法引用。
This commit is contained in:
parent
2babb5fb2d
commit
3218a2289a
@ -96,7 +96,7 @@ public class RestfulResult {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static Builder successIf(final BooleanSupplier booleanSupplier) {
|
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) {
|
public static Builder successIf(final boolean condition, final String msg) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user