diff --git a/src/fr/devinsy/util/StacktraceWriter.java b/src/fr/devinsy/util/StacktraceWriter.java index c093822..2cec674 100644 --- a/src/fr/devinsy/util/StacktraceWriter.java +++ b/src/fr/devinsy/util/StacktraceWriter.java @@ -22,25 +22,26 @@ import java.io.ByteArrayOutputStream; import java.io.PrintStream; /** - * @deprecated use SLF4J.Logger.error("blabla", exception) method. + * @deprecated use SLF4J.Logger.error("blabla", exception) method + * or the ExceptionUtils.getStackTrace(throwable). */ @Deprecated public class StacktraceWriter { - /** - * @deprecated use SLF4J.Logger.error("blabla", exception) - * method. - */ - @Deprecated - public static String toString(final Exception exception) - { - String result; + /** + * @deprecated use SLF4J.Logger.error("blabla", exception) + * method or the ExceptionUtils.getStackTrace(throwable). + */ + @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); + } }