Skip to content

Commit 6e579b0

Browse files
committed
Polishing
1 parent 322d7be commit 6e579b0

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanFactory.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -1280,7 +1280,7 @@ protected RootBeanDefinition getMergedBeanDefinition(
12801280
else {
12811281
throw new NoSuchBeanDefinitionException(parentBeanName,
12821282
"Parent name '" + parentBeanName + "' is equal to bean name '" + beanName +
1283-
"': cannot be resolved without an AbstractBeanFactory parent");
1283+
"': cannot be resolved without a ConfigurableBeanFactory parent");
12841284
}
12851285
}
12861286
}
@@ -1295,7 +1295,7 @@ protected RootBeanDefinition getMergedBeanDefinition(
12951295

12961296
// Set default singleton scope, if not configured before.
12971297
if (!StringUtils.hasLength(mbd.getScope())) {
1298-
mbd.setScope(RootBeanDefinition.SCOPE_SINGLETON);
1298+
mbd.setScope(SCOPE_SINGLETON);
12991299
}
13001300

13011301
// A bean contained in a non-singleton bean cannot be a singleton itself.

spring-context/src/main/java/org/springframework/context/annotation/AutoProxyRegistrar.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -33,7 +33,8 @@
3333
*
3434
* @author Chris Beams
3535
* @since 3.1
36-
* @see EnableAspectJAutoProxy
36+
* @see org.springframework.cache.annotation.EnableCaching
37+
* @see org.springframework.transaction.annotation.EnableTransactionManagement
3738
*/
3839
public class AutoProxyRegistrar implements ImportBeanDefinitionRegistrar {
3940

0 commit comments

Comments
 (0)