mirror of
https://github.com/corda/corda.git
synced 2025-01-06 05:04:20 +00:00
use StackTraceElement.toString in Throwable.printStackTrace
This commit is contained in:
parent
819588546e
commit
24d0ea0d9b
@ -101,21 +101,7 @@ public class Throwable {
|
||||
|
||||
StackTraceElement[] trace = resolveTrace();
|
||||
for (int i = 0; i < trace.length; ++i) {
|
||||
sb.append(" at ")
|
||||
.append(trace[i].getClassName())
|
||||
.append(".")
|
||||
.append(trace[i].getMethodName());
|
||||
|
||||
if (trace[i].isNativeMethod()) {
|
||||
sb.append(" (native)");
|
||||
} else {
|
||||
int line = trace[i].getLineNumber();
|
||||
if (line >= 0) {
|
||||
sb.append(" (line ").append(line).append(")");
|
||||
}
|
||||
}
|
||||
|
||||
sb.append(nl);
|
||||
sb.append(" at ").append(trace[i].toString()).append(nl);
|
||||
}
|
||||
|
||||
if (cause != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user