Skip to content

Make Lazy.orElseGet(Supplier) public #2930

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>org.springframework.data</groupId>
<artifactId>spring-data-commons</artifactId>
<version>3.2.0-SNAPSHOT</version>
<version>3.2.0-gh-2929-SNAPSHOT</version>

<name>Spring Data Core</name>
<description>Core Spring concepts underpinning every Spring Data module.</description>
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/springframework/data/util/Lazy.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
* @author Mark Paluch
* @author Henning Rohlfs
* @author Johannes Englmeier
* @author Greg Turnquist
* @since 2.0
*/
public class Lazy<T> implements Supplier<T> {
Expand Down Expand Up @@ -179,7 +180,7 @@ public T orElse(@Nullable T value) {
* @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");

Expand Down