Skip to content

Commit 306940c

Browse files
committed
Polishing.
See #3252
1 parent d6d4124 commit 306940c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/java/org/springframework/data/repository/core/support/RepositoryFactorySupport.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public abstract class RepositoryFactorySupport
110110
CONVERSION_SERVICE.removeConvertible(Object.class, Object.class);
111111
}
112112

113-
private final Map<RepositoryInformationCacheKey, RepositorySub> repositoryInformationCache;
113+
private final Map<RepositoryInformationCacheKey, RepositoryStub> repositoryInformationCache;
114114
private final List<RepositoryProxyPostProcessor> postProcessors;
115115

116116
private @Nullable Class<?> repositoryBaseClass;
@@ -352,7 +352,7 @@ public <T> T getRepository(Class<T> repositoryInterface, RepositoryFragments fra
352352
repositoryInterface);
353353
repositoryCompositionStep.tag("fragment.count", String.valueOf(fragments.size()));
354354

355-
RepositorySub stub = getRepositoryStub(metadata, fragments);
355+
RepositoryStub stub = getRepositoryStub(metadata, fragments);
356356
RepositoryComposition composition = stub.composition();
357357
RepositoryInformation information = stub.information();
358358

@@ -488,7 +488,7 @@ protected RepositoryInformation getRepositoryInformation(RepositoryMetadata meta
488488
}
489489

490490
/**
491-
* Returns the cached {@link RepositorySub} for the given repository and composition. {@link RepositoryMetadata} is a
491+
* Returns the cached {@link RepositoryStub} for the given repository and composition. {@link RepositoryMetadata} is a
492492
* strong cache key while {@link RepositoryFragments} contributes a light-weight caching component by using only the
493493
* fragments hash code. In a typical Spring scenario, that shouldn't impose issues as one repository factory produces
494494
* only a single repository instance for one repository interface. Things might be different when using various
@@ -498,7 +498,7 @@ protected RepositoryInformation getRepositoryInformation(RepositoryMetadata meta
498498
* @param fragments
499499
* @return
500500
*/
501-
private RepositorySub getRepositoryStub(RepositoryMetadata metadata, RepositoryFragments fragments) {
501+
private RepositoryStub getRepositoryStub(RepositoryMetadata metadata, RepositoryFragments fragments) {
502502

503503
RepositoryInformationCacheKey cacheKey = new RepositoryInformationCacheKey(metadata, fragments);
504504

@@ -512,7 +512,7 @@ private RepositorySub getRepositoryStub(RepositoryMetadata metadata, RepositoryF
512512

513513
Class<?> baseClass = repositoryBaseClass != null ? repositoryBaseClass : getRepositoryBaseClass(metadata);
514514

515-
return new RepositorySub(new DefaultRepositoryInformation(metadata, baseClass, composition), composition);
515+
return new RepositoryStub(new DefaultRepositoryInformation(metadata, baseClass, composition), composition);
516516
});
517517
}
518518
}
@@ -803,7 +803,7 @@ public List<QueryMethod> getQueryMethods() {
803803
* @author Mark Paluch
804804
* @since 3.4.4
805805
*/
806-
record RepositorySub(RepositoryInformation information, RepositoryComposition composition) {
806+
record RepositoryStub(RepositoryInformation information, RepositoryComposition composition) {
807807

808808
}
809809

0 commit comments

Comments
 (0)