Skip to content

Commit c3bdb4e

Browse files
Merge pull request #39751 from snicoll
* pr/39751: Simplify injection points declaration Closes gh-39751
2 parents ff182d8 + 4dfbeaf commit c3bdb4e

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

+4-4
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)