Removed deprecated usage of Lazy.

Replaced in `AbstractJpaQuery` the deprecated way of using `Lazy` with the suggested `Lazy.of(...)`.

Original pull request #2429
This commit is contained in:
Diego Krupitza
2022-02-04 10:34:04 +01:00
committed by Jens Schauder
parent 8f68a75217
commit b488c318c3

View File

@@ -69,7 +69,7 @@ public abstract class AbstractJpaQuery implements RepositoryQuery {
private final PersistenceProvider provider;
private final Lazy<JpaQueryExecution> execution;
final Lazy<ParameterBinder> parameterBinder = new Lazy<>(this::createBinder);
final Lazy<ParameterBinder> parameterBinder = Lazy.of(this::createBinder);
/**
* Creates a new {@link AbstractJpaQuery} from the given {@link JpaQueryMethod}.