Use tab character to indent stack traces

This commit is contained in:
Alexey Andreev 2020-02-14 10:39:50 +03:00
parent 289bfc9488
commit fecdd6613a
4 changed files with 7 additions and 7 deletions

View File

@ -160,7 +160,7 @@ public class TThrowable extends RuntimeException {
stream.println();
if (stackTrace != null) {
for (TStackTraceElement element : stackTrace) {
stream.print(" at ");
stream.print("\tat ");
stream.println(element);
}
}
@ -179,7 +179,7 @@ public class TThrowable extends RuntimeException {
stream.println();
if (stackTrace != null) {
for (TStackTraceElement element : stackTrace) {
stream.print(" at ");
stream.print("\tat ");
stream.println(element);
}
}

View File

@ -59,7 +59,7 @@ public class Deobfuscator {
public String deobfuscate(Reader text) throws IOException {
StringBuilder result = new StringBuilder();
String expectedPrefix = " at Obfuscated.obfuscated(Obfuscated.java:";
String expectedPrefix = "\tat Obfuscated.obfuscated(Obfuscated.java:";
int expectedPrefixPos = 0;
boolean isInNumber = false;
boolean expectingLineEnd = false;

View File

@ -46,7 +46,7 @@ public final class ExceptionHandling {
while (stackFrame != null) {
int callSiteId = ShadowStack.getCallSiteId(stackFrame);
if (isObfuscated()) {
Console.printString(" at Obfuscated.obfuscated(Obfuscated.java:");
Console.printString("\tat Obfuscated.obfuscated(Obfuscated.java:");
Console.printInt(callSiteId);
Console.printString(")\n");
} else {
@ -56,7 +56,7 @@ public final class ExceptionHandling {
MethodLocation methodLocation = location.method;
if (methodLocation != null) {
Console.printString(" at ");
Console.printString("\tat ");
if (methodLocation.className == null || methodLocation.methodName == null) {
Console.printString("(Unknown method)");
} else {

View File

@ -221,7 +221,7 @@ class TeaVMBuild {
}
}
private class ProblemToReport {
static class ProblemToReport {
int line;
int startOffset;
int endOffset;
@ -229,7 +229,7 @@ class TeaVMBuild {
CallLocationList locations;
}
private class CallLocationList {
static class CallLocationList {
final CallLocation value;
final CallLocationList next;