File tree Expand file tree Collapse file tree 2 files changed +15
-10
lines changed
org.springframework.core/src/main/java/org/springframework/core/env Expand file tree Collapse file tree 2 files changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -182,17 +182,15 @@ public String toString() {
182
182
* <p>Primarily for internal use, but given a collection of {@code PropertySource} objects, may be
183
183
* used as follows:
184
184
* <pre class="code">
185
- * {@code
186
- * List<PropertySource<?>> sources = new ArrayList<PropertySource<?>>();
187
- * sources.add(new MapPropertySource("sourceA", mapA));
188
- * sources.add(new MapPropertySource("sourceB", mapB));
189
- * assert sources.contains(PropertySource.named("sourceA"));
190
- * assert sources.contains(PropertySource.named("sourceB"));
191
- * assert !sources.contains(PropertySource.named("sourceC"));
192
- * }
193
- * </pre>
185
+ * {@code List<PropertySource<?>> sources = new ArrayList<PropertySource<?>>();
186
+ * sources.add(new MapPropertySource("sourceA", mapA));
187
+ * sources.add(new MapPropertySource("sourceB", mapB));
188
+ * assert sources.contains(PropertySource.named("sourceA"));
189
+ * assert sources.contains(PropertySource.named("sourceB"));
190
+ * assert !sources.contains(PropertySource.named("sourceC"));
191
+ * }</pre>
194
192
*
195
- * <p> The returned {@code PropertySource} will throw {@code UnsupportedOperationException}
193
+ * The returned {@code PropertySource} will throw {@code UnsupportedOperationException}
196
194
* if any methods other than {@code equals(Object)}, {@code hashCode()}, and {@code toString()}
197
195
* are called.
198
196
*
Original file line number Diff line number Diff line change
1
+ /**
2
+ * Spring's environment abstraction consisting of bean definition
3
+ * profile and hierarchical property source support.
4
+ * @author Chris Beams
5
+ * @since 3.1
6
+ */
7
+ package org .springframework .core .env ;
You can’t perform that action at this time.
0 commit comments