From a48cafa52e5744638d6a8cfc37ece9c8f71430e3 Mon Sep 17 00:00:00 2001 From: Thomas Neidhart Date: Sun, 21 Apr 2013 15:21:45 +0000 Subject: [PATCH] Suppress deprecation warnings for ArrayStack usage. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1470311 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/java/org/apache/commons/collections4/MapUtils.java | 3 +++ 1 file changed, 3 insertions(+) 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());