Skip to content

Commit 60d7a7f

Browse files
committed
Polishing
1 parent f1acd28 commit 60d7a7f

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

spring-beans/src/main/java/org/springframework/beans/factory/BeanFactory.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ public interface BeanFactory {
161161
* @return an instance of the single bean matching the required type
162162
* @throws NoSuchBeanDefinitionException if no bean of the given type was found
163163
* @throws NoUniqueBeanDefinitionException if more than one bean of the given type was found
164+
* @throws BeansException if the bean could not be created
164165
* @since 3.0
165166
* @see ListableBeanFactory
166167
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@
218218
* {@code <bean>} definitions within Spring XML files. It is also possible to
219219
* import Spring XML configuration files into {@code @Configuration} classes using
220220
* the {@link ImportResource @ImportResource} annotation. Bean definitions imported from XML can be
221-
* injected using {@code @Autowired} or {@code @Import}:
221+
* injected using {@code @Autowired} or {@code @Inject}:
222222
* <pre class="code">
223223
* &#064;Configuration
224224
* &#064;ImportResource("classpath:/com/acme/database-config.xml")

spring-context/src/main/java/org/springframework/context/config/PropertyOverrideBeanDefinitionParser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 the original author or authors.
2+
* Copyright 2002-2015 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.
@@ -37,8 +37,8 @@ protected Class<?> getBeanClass(Element element) {
3737

3838
@Override
3939
protected void doParse(Element element, BeanDefinitionBuilder builder) {
40-
4140
super.doParse(element, builder);
41+
4242
builder.addPropertyValue("ignoreInvalidKeys",
4343
Boolean.valueOf(element.getAttribute("ignore-unresolvable")));
4444

spring-context/src/main/java/org/springframework/context/config/PropertyPlaceholderBeanDefinitionParser.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2011 the original author or authors.
2+
* Copyright 2002-2015 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.
@@ -34,8 +34,10 @@
3434
class PropertyPlaceholderBeanDefinitionParser extends AbstractPropertyLoadingBeanDefinitionParser {
3535

3636
private static final String SYSTEM_PROPERTIES_MODE_ATTRIB = "system-properties-mode";
37+
3738
private static final String SYSTEM_PROPERTIES_MODE_DEFAULT = "ENVIRONMENT";
3839

40+
3941
@Override
4042
protected Class<?> getBeanClass(Element element) {
4143
// As of Spring 3.1, the default value of system-properties-mode has changed from

0 commit comments

Comments
 (0)