Skip to content

Commit b4355dc

Browse files
committed
Polishing
1 parent bc91e0e commit b4355dc

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

spring-context/src/main/java/org/springframework/context/support/PropertySourcesPlaceholderConfigurer.java

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 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.
@@ -49,7 +49,7 @@
4949
* XSD documentation for complete details.
5050
*
5151
* <p>Any local properties (for example, those added via {@link #setProperties}, {@link #setLocations}
52-
* et al.) are added as a {@code PropertySource}. Search precedence of local properties is
52+
* et al.) are added as a single {@link PropertySource}. Search precedence of local properties is
5353
* based on the value of the {@link #setLocalOverride localOverride} property, which is by
5454
* default {@code false} meaning that local properties are to be searched last, after all
5555
* environment property sources.
@@ -101,8 +101,9 @@ public void setPropertySources(PropertySources propertySources) {
101101
}
102102

103103
/**
104-
* {@code PropertySources} from the given {@link Environment}
105-
* will be searched when replacing ${...} placeholders.
104+
* {@inheritDoc}
105+
* <p>{@code PropertySources} from the given {@link Environment} will be searched
106+
* when replacing ${...} placeholders.
106107
* @see #setPropertySources
107108
* @see #postProcessBeanFactory
108109
*/
@@ -176,6 +177,7 @@ public String getProperty(String key) {
176177

177178
/**
178179
* Create a {@link ConfigurablePropertyResolver} for the specified property sources.
180+
* <p>The default implementation creates a {@link PropertySourcesPropertyResolver}.
179181
* @param propertySources the property sources to use
180182
* @since 6.0.12
181183
*/
@@ -188,7 +190,7 @@ protected ConfigurablePropertyResolver createPropertyResolver(MutablePropertySou
188190
* placeholders with values from the given properties.
189191
*/
190192
protected void processProperties(ConfigurableListableBeanFactory beanFactoryToProcess,
191-
final ConfigurablePropertyResolver propertyResolver) throws BeansException {
193+
ConfigurablePropertyResolver propertyResolver) throws BeansException {
192194

193195
propertyResolver.setPlaceholderPrefix(this.placeholderPrefix);
194196
propertyResolver.setPlaceholderSuffix(this.placeholderSuffix);

spring-core/src/test/java/org/springframework/core/env/PropertySourcesPropertyResolverTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class PropertySourcesPropertyResolverTests {
4242

4343
private MutablePropertySources propertySources;
4444

45-
private ConfigurablePropertyResolver propertyResolver;
45+
private PropertySourcesPropertyResolver propertyResolver;
4646

4747

4848
@BeforeEach

0 commit comments

Comments
 (0)