Make Lazy.orElseGet(Supplier) public.
Closes #2929 Original pull request: #2930
This commit is contained in:
committed by
Mark Paluch
parent
d5cd46c1d5
commit
107f268eb5
@@ -32,6 +32,7 @@ import org.springframework.util.ObjectUtils;
|
||||
* @author Mark Paluch
|
||||
* @author Henning Rohlfs
|
||||
* @author Johannes Englmeier
|
||||
* @author Greg Turnquist
|
||||
* @since 2.0
|
||||
*/
|
||||
public class Lazy<T> implements Supplier<T> {
|
||||
@@ -179,7 +180,7 @@ public class Lazy<T> implements Supplier<T> {
|
||||
* @return
|
||||
*/
|
||||
@Nullable
|
||||
private T orElseGet(Supplier<? extends T> supplier) {
|
||||
public T orElseGet(Supplier<? extends T> supplier) {
|
||||
|
||||
Assert.notNull(supplier, "Default value supplier must not be null");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user