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".
*