Skip to content

Commit b488c31

Browse files
DiegoKrupitzaschauder
authored andcommitted
Removed deprecated usage of Lazy.
Replaced in `AbstractJpaQuery` the deprecated way of using `Lazy` with the suggested `Lazy.of(...)`. Original pull request #2429
1 parent 8f68a75 commit b488c31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/springframework/data/jpa/repository/query/AbstractJpaQuery.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public abstract class AbstractJpaQuery implements RepositoryQuery {
6969
private final PersistenceProvider provider;
7070
private final Lazy<JpaQueryExecution> execution;
7171

72-
final Lazy<ParameterBinder> parameterBinder = new Lazy<>(this::createBinder);
72+
final Lazy<ParameterBinder> parameterBinder = Lazy.of(this::createBinder);
7373

7474
/**
7575
* Creates a new {@link AbstractJpaQuery} from the given {@link JpaQueryMethod}.

0 commit comments

Comments
 (0)