Skip to content

Commit c28b22b

Browse files
committed
Merge branch '6.2.x'
2 parents 958dab7 + 65e3013 commit c28b22b

File tree

1 file changed

+3
-26
lines changed

1 file changed

+3
-26
lines changed

spring-core/src/main/java/org/springframework/core/env/CompositePropertySource.java

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2025 the original author or authors.
2+
* Copyright 2002-2024 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.
@@ -40,7 +40,6 @@
4040
* @author Chris Beams
4141
* @author Juergen Hoeller
4242
* @author Phillip Webb
43-
* @author Sam Brannen
4443
* @since 3.1.1
4544
*/
4645
public class CompositePropertySource extends EnumerablePropertySource<Object> {
@@ -49,35 +48,13 @@ public class CompositePropertySource extends EnumerablePropertySource<Object> {
4948

5049

5150
/**
52-
* Create a new empty {@code CompositePropertySource} with the given name.
53-
* @param name the name of the composite property source
54-
* @see #CompositePropertySource(String, Iterable)
55-
* @see #addPropertySource(PropertySource)
56-
* @see #addFirstPropertySource(PropertySource)
51+
* Create a new {@code CompositePropertySource}.
52+
* @param name the name of the property source
5753
*/
5854
public CompositePropertySource(String name) {
5955
super(name);
6056
}
6157

62-
/**
63-
* Create a new {@code CompositePropertySource} with the given name and
64-
* property sources supplied as an {@link Iterable} or {@link PropertySources}
65-
* implementation, preserving the original order of the property sources.
66-
* @param name the name of the composite property source
67-
* @param propertySources the initial set of {@link PropertySource} instances
68-
* @since 6.2.7
69-
* @see PropertySources
70-
* @see MutablePropertySources
71-
* @see #addPropertySource(PropertySource)
72-
* @see #addFirstPropertySource(PropertySource)
73-
*/
74-
public CompositePropertySource(String name, Iterable<PropertySource<?>> propertySources) {
75-
this(name);
76-
for (PropertySource<?> propertySource : propertySources) {
77-
this.propertySources.add(propertySource);
78-
}
79-
}
80-
8158

8259
@Override
8360
public @Nullable Object getProperty(String name) {

0 commit comments

Comments
 (0)