Skip to content

Commit

Permalink
Add missing @nullable declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Aug 25, 2019
1 parent 9be6aa6 commit 5105b74
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public static String getTargetBeanName(String originalBeanName) {
* @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);
Expand Down

0 comments on commit 5105b74

Please sign in to comment.