1
1
/*
2
- * Copyright 2002-2025 the original author or authors.
2
+ * Copyright 2002-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
40
40
* @author Chris Beams
41
41
* @author Juergen Hoeller
42
42
* @author Phillip Webb
43
- * @author Sam Brannen
44
43
* @since 3.1.1
45
44
*/
46
45
public class CompositePropertySource extends EnumerablePropertySource <Object > {
@@ -49,35 +48,13 @@ public class CompositePropertySource extends EnumerablePropertySource<Object> {
49
48
50
49
51
50
/**
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
57
53
*/
58
54
public CompositePropertySource (String name ) {
59
55
super (name );
60
56
}
61
57
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
-
81
58
82
59
@ Override
83
60
public @ Nullable Object getProperty (String name ) {
0 commit comments