[ISSUE #10308] Use Generic Type (#10309)

* code optimization for `ConfigChangeHandler`

* [ISSUE #9930] fix word spelling error in com.alibaba.nacos.common.http.AbstractHttpClientFactory#ASYNC_IO_REACTOR_NAME

* [ISSUE #10020] Use Generic Type When Declaring `authFilterRegistration` in com.alibaba.nacos.core.auth.AuthConfig

* fix code format

* fix code format

* Fix Code Format

* Fix Code Format

* [ISSUE #10308] Use Generic Type
This commit is contained in:
ZhangShenao 2023-04-13 18:01:51 +08:00 committed by GitHub
parent b3b5236cd4
commit 1f28e28549
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,7 @@ public class PrometheusAuthFilter {
@Bean
public FilterRegistrationBean<AuthorizationFilter> authorizationFilter() {
FilterRegistrationBean<AuthorizationFilter> registration = new FilterRegistrationBean<>();
registration.setFilter(new AuthorizationFilter(new AuthenticatedAuthorizationManager()));
registration.setFilter(new AuthorizationFilter(new AuthenticatedAuthorizationManager<>()));
registration.addUrlPatterns(PROMETHEUS_CONTROLLER_PATH);
registration.setName("prometheusAuthorizationFilter");
registration.setOrder(4);