From 169b2702ed5e83546e40cdf564a937c080d179bf Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Thu, 9 Jun 2016 03:52:14 +0200 Subject: [PATCH] Deprecate the StackTraceWriter class. --- src/fr/devinsy/util/StacktraceWriter.java | 27 +++++++++++++---------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/src/fr/devinsy/util/StacktraceWriter.java b/src/fr/devinsy/util/StacktraceWriter.java index 89f62a3..493a2a3 100644 --- a/src/fr/devinsy/util/StacktraceWriter.java +++ b/src/fr/devinsy/util/StacktraceWriter.java @@ -22,22 +22,25 @@ import java.io.ByteArrayOutputStream; import java.io.PrintStream; /** - * + * @deprecated use SLF4J.Logger.error("blabla", exception) method. */ +@Deprecated public class StacktraceWriter { - /** - * + /** + * @deprecated use SLF4J.Logger.error("blabla", exception) + * method. */ - public static String toString(final Exception exception) - { - String result; + @Deprecated + public static String toString(final Exception exception) + { + String result; - ByteArrayOutputStream out = new ByteArrayOutputStream(50000); - exception.printStackTrace(new PrintStream(out)); - result = out.toString(); + ByteArrayOutputStream out = new ByteArrayOutputStream(50000); + exception.printStackTrace(new PrintStream(out)); + result = out.toString(); - // - return (result); - } + // + return (result); + } }