Polish Javadoc

This commit is contained in:
Chris Beams
2011-12-12 23:42:39 +00:00
parent 8f18337543
commit 153d38f1c8
2 changed files with 15 additions and 10 deletions

View File

@@ -182,17 +182,15 @@ public abstract class PropertySource<T> {
* <p>Primarily for internal use, but given a collection of {@code PropertySource} objects, may be
* used as follows:
* <pre class="code">
* {@code
* List<PropertySource<?>> sources = new ArrayList<PropertySource<?>>();
* sources.add(new MapPropertySource("sourceA", mapA));
* sources.add(new MapPropertySource("sourceB", mapB));
* assert sources.contains(PropertySource.named("sourceA"));
* assert sources.contains(PropertySource.named("sourceB"));
* assert !sources.contains(PropertySource.named("sourceC"));
* }
* </pre>
* {@code List<PropertySource<?>> sources = new ArrayList<PropertySource<?>>();
* sources.add(new MapPropertySource("sourceA", mapA));
* sources.add(new MapPropertySource("sourceB", mapB));
* assert sources.contains(PropertySource.named("sourceA"));
* assert sources.contains(PropertySource.named("sourceB"));
* assert !sources.contains(PropertySource.named("sourceC"));
* }</pre>
*
* <p>The returned {@code PropertySource} will throw {@code UnsupportedOperationException}
* The returned {@code PropertySource} will throw {@code UnsupportedOperationException}
* if any methods other than {@code equals(Object)}, {@code hashCode()}, and {@code toString()}
* are called.
*

View File

@@ -0,0 +1,7 @@
/**
* Spring's environment abstraction consisting of bean definition
* profile and hierarchical property source support.
* @author Chris Beams
* @since 3.1
*/
package org.springframework.core.env;