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
This commit is contained in:
Thomas Neidhart 2013-04-21 15:21:45 +00:00
parent 0574dfb035
commit a48cafa52e
1 changed files with 3 additions and 0 deletions

View File

@ -910,6 +910,7 @@ public class MapUtils {
* If <code>null</code>, the text 'null' is output.
* @throws NullPointerException if the stream is <code>null</code>
*/
@SuppressWarnings("deprecation")
public static void verbosePrint(final PrintStream out, final Object label, final Map<?, ?> map) {
verbosePrintInternal(out, label, map, new ArrayStack<Map<?, ?>>(), false);
}
@ -932,6 +933,7 @@ public class MapUtils {
* If <code>null</code>, the text 'null' is output.
* @throws NullPointerException if the stream is <code>null</code>
*/
@SuppressWarnings("deprecation")
public static void debugPrint(final PrintStream out, final Object label, final Map<?, ?> map) {
verbosePrintInternal(out, label, map, new ArrayStack<Map<?, ?>>(), true);
}
@ -961,6 +963,7 @@ public class MapUtils {
* @param debug flag indicating whether type names should be output.
* @throws NullPointerException if the stream is <code>null</code>
*/
@SuppressWarnings("deprecation")
private static void verbosePrintInternal(final PrintStream out, final Object label, final Map<?, ?> map,
final ArrayStack<Map<?, ?>> lineage, final boolean debug) {
printIndent(out, lineage.size());