Add missing @Nullable declaration

See gh-23514
This commit is contained in:
Sam Brannen
2019-08-25 15:15:48 +02:00
parent 9be6aa64ef
commit 5105b74f6e

View File

@@ -117,7 +117,7 @@ public abstract class ScopedProxyUtils {
* @see #getTargetBeanName(String)
* @see #isScopedTarget(String)
*/
public static String getOriginalBeanName(String targetBeanName) {
public static String getOriginalBeanName(@Nullable String targetBeanName) {
Assert.isTrue(isScopedTarget(targetBeanName), () -> "bean name '" +
targetBeanName + "' does not refer to the target of a scoped proxy");
return targetBeanName.substring(TARGET_NAME_PREFIX_LENGTH);