From 8ad53249533b2a848fe5e0a59729fef9dd7098f0 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sat, 27 Jan 2024 09:26:49 -0500 Subject: [PATCH] Javadoc --- .../org/apache/commons/collections4/MapUtils.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/main/java/org/apache/commons/collections4/MapUtils.java b/src/main/java/org/apache/commons/collections4/MapUtils.java index c3ad90b950..9ba8ac00f9 100644 --- a/src/main/java/org/apache/commons/collections4/MapUtils.java +++ b/src/main/java/org/apache/commons/collections4/MapUtils.java @@ -216,6 +216,7 @@ public static SortedMap fixedSizeSortedMap(final SortedMap ma * equals 'true' ignoring case then {@code true} is returned, otherwise {@code false}. If the value is a * {@code Number} an integer zero value returns {@code false} and non-zero returns {@code true}. * Otherwise, {@code null} is returned. + *

* * @param the key type * @param map the map to use @@ -1272,7 +1273,6 @@ public static IterableSortedMap iterableSortedMap(final SortedMap - * *

* After the above code is executed, {@code obj} will contain a new {@code Date} instance. Furthermore, * that {@code Date} instance is the value for the {@code "test"} key in the map. @@ -1623,25 +1623,20 @@ private static void printIndent(final PrintStream out, final int indent) { *

* For example, to create a color map: *

- * *
      * Map colorMap = MapUtils.putAll(new HashMap(),
      *         new String[][] { { "RED", "#FF0000" }, { "GREEN", "#00FF00" }, { "BLUE", "#0000FF" } });
      * 
- * *

* or: *

- * *
      * Map colorMap = MapUtils.putAll(new HashMap(),
      *         new String[] { "RED", "#FF0000", "GREEN", "#00FF00", "BLUE", "#0000FF" });
      * 
- * *

* or: *

- * *
      * Map colorMap = MapUtils.putAll(new HashMap(), new Map.Entry[] { new DefaultMapEntry("RED", "#FF0000"),
      *         new DefaultMapEntry("GREEN", "#00FF00"), new DefaultMapEntry("BLUE", "#0000FF") });
@@ -1734,7 +1729,6 @@ public static int size(final Map map) {
      * 

* You must manually synchronize on the returned buffer's iterator to avoid non-deterministic behavior: *

- * *
      * Map m = MapUtils.synchronizedMap(myMap);
      * Sets s = m.keySet(); // outside synchronized block
@@ -1745,7 +1739,6 @@ public static int size(final Map map) {
      *     }
      * }
      * 
- * *

* This method uses the implementation in {@link java.util.Collections Collections}. *

@@ -1764,7 +1757,6 @@ public static Map synchronizedMap(final Map map) { *

* You must manually synchronize on the returned buffer's iterator to avoid non-deterministic behavior: *

- * *
      * Map m = MapUtils.synchronizedSortedMap(myMap);
      * Sets s = m.keySet(); // outside synchronized block
@@ -1775,7 +1767,6 @@ public static  Map synchronizedMap(final Map map) {
      *     }
      * }
      * 
- * *

* This method uses the implementation in {@link java.util.Collections Collections}. *