Polishing

This commit is contained in:
Juergen Hoeller
2014-12-29 15:13:40 +01:00
parent 6f2de283c4
commit 86b8112c90
6 changed files with 27 additions and 23 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2013 the original author or authors.
* Copyright 2002-2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -100,9 +100,10 @@ public abstract class ScopedProxyUtils {
/**
* Specify if the {@code beanName} is the name of a bean that references the target
* bean within a scoped proxy.
* @since 4.1.4
*/
public static boolean isScopedTarget(String beanName) {
return beanName.startsWith(TARGET_NAME_PREFIX);
return (beanName != null && beanName.startsWith(TARGET_NAME_PREFIX));
}
}