From f72f1ae330ea61e0cbca0832e4e32cee024775ac Mon Sep 17 00:00:00 2001 From: Mikko Maunu Date: Wed, 25 Sep 2019 16:42:44 +0200 Subject: [PATCH] [COLLECTIONS-679] Using existing class in example given in Javadocs. (#85) --- .../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 19ef16562..8e303efc6 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; *

* For example: *

- *
- * 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);
- * 
+ *
{@code
+ * MultiValuedMap map = new ArrayListValuedHashMap<>();
+ * map.put(1, "A");
+ * map.put(1, "B");
+ * map.put(1, "C");
+ * Collection coll = map.get(1);
+ * }
*

* coll will be a collection containing "A", "B", "C". *