Browse Source

Make `Lazy.orElseGet(Supplier)` public.

Closes #2929
Original pull request: #2930
pull/2931/head
Greg L. Turnquist 2 years ago committed by Mark Paluch
parent
commit
107f268eb5
No known key found for this signature in database
GPG Key ID: 4406B84C1661DCD1
  1. 3
      src/main/java/org/springframework/data/util/Lazy.java

3
src/main/java/org/springframework/data/util/Lazy.java

@ -32,6 +32,7 @@ import org.springframework.util.ObjectUtils; @@ -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> { @@ -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");

Loading…
Cancel
Save