Cleanup redundant type casts
This commit is contained in:
+1
-1
@@ -287,6 +287,6 @@ public class AuthenticationManagerBuilder
|
||||
private <C extends UserDetailsAwareConfigurer<AuthenticationManagerBuilder, ? extends UserDetailsService>> C apply(
|
||||
C configurer) throws Exception {
|
||||
this.defaultUserDetailsService = configurer.getUserDetailsService();
|
||||
return (C) super.apply(configurer);
|
||||
return super.apply(configurer);
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -2072,11 +2072,11 @@ public class OAuth2ResourceServerConfigurerTests {
|
||||
}
|
||||
|
||||
private <T> T bean(Class<T> beanClass) {
|
||||
return (T) this.spring.getContext().getBean(beanClass);
|
||||
return this.spring.getContext().getBean(beanClass);
|
||||
}
|
||||
|
||||
private <T> T verifyBean(Class<T> beanClass) {
|
||||
return (T) verify(this.spring.getContext().getBean(beanClass));
|
||||
return verify(this.spring.getContext().getBean(beanClass));
|
||||
}
|
||||
|
||||
private String json(String name) throws IOException {
|
||||
|
||||
Reference in New Issue
Block a user