Skip to content

Commit 153d38f

Browse files
committed
Polish Javadoc
1 parent 8f18337 commit 153d38f

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

org.springframework.core/src/main/java/org/springframework/core/env/PropertySource.java

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -182,17 +182,15 @@ public String toString() {
182182
* <p>Primarily for internal use, but given a collection of {@code PropertySource} objects, may be
183183
* used as follows:
184184
* <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>
194192
*
195-
* <p>The returned {@code PropertySource} will throw {@code UnsupportedOperationException}
193+
* The returned {@code PropertySource} will throw {@code UnsupportedOperationException}
196194
* if any methods other than {@code equals(Object)}, {@code hashCode()}, and {@code toString()}
197195
* are called.
198196
*
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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;

0 commit comments

Comments
 (0)