Remove unused parameters

Closes gh-11785
pull/11783/merge
Johnny Lim 7 years ago committed by Stephane Nicoll
parent cffafe31ba
commit 15fb62718d

@ -111,7 +111,6 @@ public class WebEndpointAutoConfiguration {
@ConditionalOnMissingBean(ControllerEndpointsSupplier.class) @ConditionalOnMissingBean(ControllerEndpointsSupplier.class)
public ControllerEndpointDiscoverer controllerEndpointDiscoverer( public ControllerEndpointDiscoverer controllerEndpointDiscoverer(
PathMapper webEndpointPathMapper, PathMapper webEndpointPathMapper,
ObjectProvider<Collection<OperationInvokerAdvisor>> invokerAdvisors,
ObjectProvider<Collection<EndpointFilter<ExposableControllerEndpoint>>> filters) { ObjectProvider<Collection<EndpointFilter<ExposableControllerEndpoint>>> filters) {
return new ControllerEndpointDiscoverer(this.applicationContext, return new ControllerEndpointDiscoverer(this.applicationContext,
webEndpointPathMapper, filters.getIfAvailable(Collections::emptyList)); webEndpointPathMapper, filters.getIfAvailable(Collections::emptyList));
@ -149,7 +148,6 @@ public class WebEndpointAutoConfiguration {
@ConditionalOnMissingBean(ServletEndpointsSupplier.class) @ConditionalOnMissingBean(ServletEndpointsSupplier.class)
public ServletEndpointDiscoverer servletEndpointDiscoverer( public ServletEndpointDiscoverer servletEndpointDiscoverer(
ApplicationContext applicationContext, PathMapper webEndpointPathMapper, ApplicationContext applicationContext, PathMapper webEndpointPathMapper,
ObjectProvider<Collection<OperationInvokerAdvisor>> invokerAdvisors,
ObjectProvider<Collection<EndpointFilter<ExposableServletEndpoint>>> filters) { ObjectProvider<Collection<EndpointFilter<ExposableServletEndpoint>>> filters) {
return new ServletEndpointDiscoverer(applicationContext, return new ServletEndpointDiscoverer(applicationContext,
webEndpointPathMapper, webEndpointPathMapper,

@ -67,7 +67,7 @@ public class WebFluxEndpointManagementContextConfiguration {
@ConditionalOnMissingBean @ConditionalOnMissingBean
public ControllerEndpointHandlerMapping controllerEndpointHandlerMapping( public ControllerEndpointHandlerMapping controllerEndpointHandlerMapping(
ControllerEndpointsSupplier controllerEndpointsSupplier, ControllerEndpointsSupplier controllerEndpointsSupplier,
EndpointMediaTypes endpointMediaTypes, CorsEndpointProperties corsProperties, CorsEndpointProperties corsProperties,
WebEndpointProperties webEndpointProperties) { WebEndpointProperties webEndpointProperties) {
EndpointMapping endpointMapping = new EndpointMapping( EndpointMapping endpointMapping = new EndpointMapping(
webEndpointProperties.getBasePath()); webEndpointProperties.getBasePath());

Loading…
Cancel
Save