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:
parent
0574dfb035
commit
a48cafa52e
|
@ -910,6 +910,7 @@ public class MapUtils {
|
||||||
* If <code>null</code>, the text 'null' is output.
|
* If <code>null</code>, the text 'null' is output.
|
||||||
* @throws NullPointerException if the stream is <code>null</code>
|
* @throws NullPointerException if the stream is <code>null</code>
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
public static void verbosePrint(final PrintStream out, final Object label, final Map<?, ?> map) {
|
public static void verbosePrint(final PrintStream out, final Object label, final Map<?, ?> map) {
|
||||||
verbosePrintInternal(out, label, map, new ArrayStack<Map<?, ?>>(), false);
|
verbosePrintInternal(out, label, map, new ArrayStack<Map<?, ?>>(), false);
|
||||||
}
|
}
|
||||||
|
@ -932,6 +933,7 @@ public class MapUtils {
|
||||||
* If <code>null</code>, the text 'null' is output.
|
* If <code>null</code>, the text 'null' is output.
|
||||||
* @throws NullPointerException if the stream is <code>null</code>
|
* @throws NullPointerException if the stream is <code>null</code>
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
public static void debugPrint(final PrintStream out, final Object label, final Map<?, ?> map) {
|
public static void debugPrint(final PrintStream out, final Object label, final Map<?, ?> map) {
|
||||||
verbosePrintInternal(out, label, map, new ArrayStack<Map<?, ?>>(), true);
|
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.
|
* @param debug flag indicating whether type names should be output.
|
||||||
* @throws NullPointerException if the stream is <code>null</code>
|
* @throws NullPointerException if the stream is <code>null</code>
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
private static void verbosePrintInternal(final PrintStream out, final Object label, final Map<?, ?> map,
|
private static void verbosePrintInternal(final PrintStream out, final Object label, final Map<?, ?> map,
|
||||||
final ArrayStack<Map<?, ?>> lineage, final boolean debug) {
|
final ArrayStack<Map<?, ?>> lineage, final boolean debug) {
|
||||||
printIndent(out, lineage.size());
|
printIndent(out, lineage.size());
|
||||||
|
|
Loading…
Reference in New Issue