2
0
Эх сурвалжийг харах

Updates javadoc for InitializeUserDetailsBeanManagerConfigurer

Adrian Pena 5 жил өмнө
parent
commit
ca8877c8c5

+ 2 - 2
config/src/main/java/org/springframework/security/config/annotation/authentication/configuration/InitializeUserDetailsBeanManagerConfigurer.java

@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright 2002-2015 the original author or authors.
+ * Copyright 2002-2019 the original author or authors.
  *
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * you may not use this file except in compliance with the License.
@@ -82,7 +82,7 @@ class InitializeUserDetailsBeanManagerConfigurer
 		}
 		}
 
 
 		/**
 		/**
-		 * @return
+		 * @return a bean of the requested class if there's just a single registered component, null otherwise.
 		 */
 		 */
 		private <T> T getBeanOrNull(Class<T> type) {
 		private <T> T getBeanOrNull(Class<T> type) {
 			String[] userDetailsBeanNames = InitializeUserDetailsBeanManagerConfigurer.this.context
 			String[] userDetailsBeanNames = InitializeUserDetailsBeanManagerConfigurer.this.context