Skip to content

Commit 51639a8

Browse files
committed
Remove usage of deprecated code.
Closes #2310
1 parent 8d9fd1e commit 51639a8

File tree

6 files changed

+5
-14
lines changed

6 files changed

+5
-14
lines changed

src/main/java/org/springframework/data/jpa/mapping/JpaPersistentPropertyImpl.java

-9
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,6 @@ public Class<?> getActualType() {
124124
: super.getActualType();
125125
}
126126

127-
/*
128-
* (non-Javadoc)
129-
* @see org.springframework.data.mapping.PersistentProperty#getPersistentEntityTypes()
130-
*/
131-
@Override
132-
public Iterable<? extends TypeInformation<?>> getPersistentEntityTypes() {
133-
return getPersistentEntityTypeInformation();
134-
}
135-
136127
/*
137128
* (non-Javadoc)
138129
* @see org.springframework.data.mapping.model.AbstractPersistentProperty#getPersistentEntityTypeInformation()

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}.

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
import org.springframework.data.domain.SliceImpl;
3535
import org.springframework.data.jpa.provider.PersistenceProvider;
3636
import org.springframework.data.repository.core.support.SurroundingTransactionDetectorMethodInterceptor;
37-
import org.springframework.data.repository.support.PageableExecutionUtils;
37+
import org.springframework.data.support.PageableExecutionUtils;
3838
import org.springframework.data.util.CloseableIterator;
3939
import org.springframework.data.util.StreamUtils;
4040
import org.springframework.lang.Nullable;

src/main/java/org/springframework/data/jpa/repository/support/QuerydslJpaPredicateExecutor.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import org.springframework.data.querydsl.EntityPathResolver;
3030
import org.springframework.data.querydsl.QSort;
3131
import org.springframework.data.querydsl.QuerydslPredicateExecutor;
32-
import org.springframework.data.repository.support.PageableExecutionUtils;
32+
import org.springframework.data.support.PageableExecutionUtils;
3333
import org.springframework.lang.Nullable;
3434
import org.springframework.util.Assert;
3535

src/main/java/org/springframework/data/jpa/repository/support/QuerydslJpaRepository.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
import org.springframework.data.querydsl.QSort;
3131
import org.springframework.data.querydsl.QuerydslPredicateExecutor;
3232
import org.springframework.data.querydsl.SimpleEntityPathResolver;
33-
import org.springframework.data.repository.support.PageableExecutionUtils;
33+
import org.springframework.data.support.PageableExecutionUtils;
3434
import org.springframework.lang.Nullable;
3535
import org.springframework.util.Assert;
3636

src/main/java/org/springframework/data/jpa/repository/support/SimpleJpaRepository.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
import org.springframework.data.jpa.repository.query.EscapeCharacter;
5353
import org.springframework.data.jpa.repository.query.QueryUtils;
5454
import org.springframework.data.jpa.repository.support.QueryHints.NoHints;
55-
import org.springframework.data.repository.support.PageableExecutionUtils;
55+
import org.springframework.data.support.PageableExecutionUtils;
5656
import org.springframework.data.util.ProxyUtils;
5757
import org.springframework.data.util.Streamable;
5858
import org.springframework.lang.Nullable;

0 commit comments

Comments
 (0)