Skip to content

Commit 811efba

Browse files
committed
Polishing.
Remove unneeded private getEntityInformation(…) method. See #2053
1 parent 231728e commit 811efba

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/repository/support/R2dbcRepositoryFactory.java

+2-10
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,7 @@ protected Class<?> getRepositoryBaseClass(RepositoryMetadata metadata) {
107107
@Override
108108
protected Object getTargetRepository(RepositoryInformation information) {
109109

110-
RelationalEntityInformation<?, ?> entityInformation = getEntityInformation(information.getDomainType(),
111-
information);
112-
110+
RelationalEntityInformation<?, ?> entityInformation = getEntityInformation(information.getDomainType());
113111
return getTargetRepositoryViaReflection(information, entityInformation, operations, this.converter);
114112
}
115113

@@ -119,16 +117,10 @@ protected Optional<QueryLookupStrategy> getQueryLookupStrategy(@Nullable Key key
119117
return Optional.of(new R2dbcQueryLookupStrategy(operations, new CachingValueExpressionDelegate(valueExpressionDelegate), converter, dataAccessStrategy));
120118
}
121119

120+
@Override
122121
public <T, ID> RelationalEntityInformation<T, ID> getEntityInformation(Class<T> domainClass) {
123-
return getEntityInformation(domainClass, null);
124-
}
125-
126-
@SuppressWarnings("unchecked")
127-
private <T, ID> RelationalEntityInformation<T, ID> getEntityInformation(Class<T> domainClass,
128-
@Nullable RepositoryInformation information) {
129122

130123
RelationalPersistentEntity<?> entity = this.mappingContext.getRequiredPersistentEntity(domainClass);
131-
132124
return new MappingRelationalEntityInformation<>((RelationalPersistentEntity<T>) entity);
133125
}
134126

0 commit comments

Comments
 (0)