浏览代码

Polish Tests

Issue gh-17298
Josh Cummings 1 月之前
父节点
当前提交
19e88f5e35

+ 1 - 2
config/src/test/java/org/springframework/security/config/annotation/authentication/AuthenticationManagerBuilderTests.java

@@ -241,8 +241,7 @@ public class AuthenticationManagerBuilderTests {
 
 
 		@Bean
 		@Bean
 		AuthenticationProvider authenticationProvider() throws Exception {
 		AuthenticationProvider authenticationProvider() throws Exception {
-			DaoAuthenticationProvider provider = new DaoAuthenticationProvider(userDetailsService());
-			return provider;
+			return new DaoAuthenticationProvider(userDetailsService());
 		}
 		}
 
 
 		@Bean
 		@Bean