Skip to content

Commit 4dfbeaf

Browse files
snicollscottfrederick
authored andcommitted
Simplify injection points declaration
This commit simplifies the generics used for SessionRepository and FindByIdNameSessionRepository as their type signatures already declare that `S` extends from `Session`. See gh-39751
1 parent ff182d8 commit 4dfbeaf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/session/SessionsEndpointAutoConfiguration.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ static class ServletSessionEndpointConfiguration {
5454

5555
@Bean
5656
@ConditionalOnMissingBean
57-
SessionsEndpoint sessionEndpoint(SessionRepository<? extends Session> sessionRepository,
58-
ObjectProvider<FindByIndexNameSessionRepository<? extends Session>> indexedSessionRepository) {
57+
SessionsEndpoint sessionEndpoint(SessionRepository<?> sessionRepository,
58+
ObjectProvider<FindByIndexNameSessionRepository<?>> indexedSessionRepository) {
5959
return new SessionsEndpoint(sessionRepository, indexedSessionRepository.getIfAvailable());
6060
}
6161

@@ -68,8 +68,8 @@ static class ReactiveSessionEndpointConfiguration {
6868

6969
@Bean
7070
@ConditionalOnMissingBean
71-
ReactiveSessionsEndpoint sessionsEndpoint(ReactiveSessionRepository<? extends Session> sessionRepository,
72-
ObjectProvider<ReactiveFindByIndexNameSessionRepository<? extends Session>> indexedSessionRepository) {
71+
ReactiveSessionsEndpoint sessionsEndpoint(ReactiveSessionRepository<?> sessionRepository,
72+
ObjectProvider<ReactiveFindByIndexNameSessionRepository<?>> indexedSessionRepository) {
7373
return new ReactiveSessionsEndpoint(sessionRepository, indexedSessionRepository.getIfAvailable());
7474
}
7575

0 commit comments

Comments
 (0)