This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-collections.git
The following commit(s) were added to refs/heads/master by this push:
new f72f1ae [COLLECTIONS-679] Using existing class in example given in
Javadocs. (#85)
f72f1ae is described below
commit f72f1ae330ea61e0cbca0832e4e32cee024775ac
Author: Mikko Maunu <[email protected]>
AuthorDate: Wed Sep 25 16:42:44 2019 +0200
[COLLECTIONS-679] Using existing class in example given in Javadocs. (#85)
---
.../org/apache/commons/collections4/MultiValuedMap.java | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/main/java/org/apache/commons/collections4/MultiValuedMap.java
b/src/main/java/org/apache/commons/collections4/MultiValuedMap.java
index 19ef165..8e303ef 100644
--- a/src/main/java/org/apache/commons/collections4/MultiValuedMap.java
+++ b/src/main/java/org/apache/commons/collections4/MultiValuedMap.java
@@ -33,13 +33,13 @@ import java.util.Set;
* <p>
* For example:
* </p>
- * <pre>
- * MultiValuedMap<K, String> map = new MultiValuedHashMap<K,
String>();
- * map.put(key, "A");
- * map.put(key, "B");
- * map.put(key, "C");
- * Collection<String> coll = map.get(key);
- * </pre>
+ * <pre>{@code
+ * MultiValuedMap<Integer, String> map = new ArrayListValuedHashMap<>();
+ * map.put(1, "A");
+ * map.put(1, "B");
+ * map.put(1, "C");
+ * Collection<String> coll = map.get(1);
+ * }</pre>
* <p>
* <code>coll</code> will be a collection containing "A", "B", "C".
* </p>