diff --git a/src/main/java/org/apache/commons/collections4/MapUtils.java b/src/main/java/org/apache/commons/collections4/MapUtils.java index 3eb507890..1cd2d5b44 100644 --- a/src/main/java/org/apache/commons/collections4/MapUtils.java +++ b/src/main/java/org/apache/commons/collections4/MapUtils.java @@ -910,6 +910,7 @@ public class MapUtils { * If null, the text 'null' is output. * @throws NullPointerException if the stream is null */ + @SuppressWarnings("deprecation") public static void verbosePrint(final PrintStream out, final Object label, final Map map) { verbosePrintInternal(out, label, map, new ArrayStack>(), false); } @@ -932,6 +933,7 @@ public class MapUtils { * If null, the text 'null' is output. * @throws NullPointerException if the stream is null */ + @SuppressWarnings("deprecation") public static void debugPrint(final PrintStream out, final Object label, final Map map) { verbosePrintInternal(out, label, map, new ArrayStack>(), true); } @@ -961,6 +963,7 @@ public class MapUtils { * @param debug flag indicating whether type names should be output. * @throws NullPointerException if the stream is null */ + @SuppressWarnings("deprecation") private static void verbosePrintInternal(final PrintStream out, final Object label, final Map map, final ArrayStack> lineage, final boolean debug) { printIndent(out, lineage.size());