File tree 1 file changed +0
-18
lines changed
src/main/java/com/rabbitmq/utility
1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change 15
15
16
16
package com .rabbitmq .utility ;
17
17
18
- import java .io .ByteArrayOutputStream ;
19
- import java .io .PrintStream ;
20
18
import java .util .ArrayList ;
21
19
import java .util .Collections ;
22
20
import java .util .LinkedHashMap ;
@@ -74,22 +72,6 @@ public static <T extends Throwable & SensibleClone<T>> T fixStackTrace(T throwab
74
72
throwable .setStackTrace (newTrace );
75
73
return throwable ;
76
74
}
77
-
78
- /**
79
- *
80
- * @param throwable
81
- * @return
82
- * @deprecated use logging library instead for logging stack traces somewhere
83
- */
84
- public static String makeStackTrace (Throwable throwable ) {
85
- ByteArrayOutputStream baOutStream = new ByteArrayOutputStream ();
86
- PrintStream printStream = new PrintStream (baOutStream , false );
87
- throwable .printStackTrace (printStream );
88
- printStream .flush (); // since we don't automatically do so
89
- String text = baOutStream .toString ();
90
- printStream .close (); // closes baOutStream
91
- return text ;
92
- }
93
75
94
76
/**
95
77
* Synchronizes on the list and then returns a copy of the list that is safe to iterate over. Useful when wanting to do thread-safe iteration over
You can’t perform that action at this time.
0 commit comments