mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
Use tab character to indent stack traces
This commit is contained in:
parent
289bfc9488
commit
fecdd6613a
|
@ -160,7 +160,7 @@ public class TThrowable extends RuntimeException {
|
||||||
stream.println();
|
stream.println();
|
||||||
if (stackTrace != null) {
|
if (stackTrace != null) {
|
||||||
for (TStackTraceElement element : stackTrace) {
|
for (TStackTraceElement element : stackTrace) {
|
||||||
stream.print(" at ");
|
stream.print("\tat ");
|
||||||
stream.println(element);
|
stream.println(element);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -179,7 +179,7 @@ public class TThrowable extends RuntimeException {
|
||||||
stream.println();
|
stream.println();
|
||||||
if (stackTrace != null) {
|
if (stackTrace != null) {
|
||||||
for (TStackTraceElement element : stackTrace) {
|
for (TStackTraceElement element : stackTrace) {
|
||||||
stream.print(" at ");
|
stream.print("\tat ");
|
||||||
stream.println(element);
|
stream.println(element);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,7 +59,7 @@ public class Deobfuscator {
|
||||||
public String deobfuscate(Reader text) throws IOException {
|
public String deobfuscate(Reader text) throws IOException {
|
||||||
StringBuilder result = new StringBuilder();
|
StringBuilder result = new StringBuilder();
|
||||||
|
|
||||||
String expectedPrefix = " at Obfuscated.obfuscated(Obfuscated.java:";
|
String expectedPrefix = "\tat Obfuscated.obfuscated(Obfuscated.java:";
|
||||||
int expectedPrefixPos = 0;
|
int expectedPrefixPos = 0;
|
||||||
boolean isInNumber = false;
|
boolean isInNumber = false;
|
||||||
boolean expectingLineEnd = false;
|
boolean expectingLineEnd = false;
|
||||||
|
|
|
@ -46,7 +46,7 @@ public final class ExceptionHandling {
|
||||||
while (stackFrame != null) {
|
while (stackFrame != null) {
|
||||||
int callSiteId = ShadowStack.getCallSiteId(stackFrame);
|
int callSiteId = ShadowStack.getCallSiteId(stackFrame);
|
||||||
if (isObfuscated()) {
|
if (isObfuscated()) {
|
||||||
Console.printString(" at Obfuscated.obfuscated(Obfuscated.java:");
|
Console.printString("\tat Obfuscated.obfuscated(Obfuscated.java:");
|
||||||
Console.printInt(callSiteId);
|
Console.printInt(callSiteId);
|
||||||
Console.printString(")\n");
|
Console.printString(")\n");
|
||||||
} else {
|
} else {
|
||||||
|
@ -56,7 +56,7 @@ public final class ExceptionHandling {
|
||||||
MethodLocation methodLocation = location.method;
|
MethodLocation methodLocation = location.method;
|
||||||
|
|
||||||
if (methodLocation != null) {
|
if (methodLocation != null) {
|
||||||
Console.printString(" at ");
|
Console.printString("\tat ");
|
||||||
if (methodLocation.className == null || methodLocation.methodName == null) {
|
if (methodLocation.className == null || methodLocation.methodName == null) {
|
||||||
Console.printString("(Unknown method)");
|
Console.printString("(Unknown method)");
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -221,7 +221,7 @@ class TeaVMBuild {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private class ProblemToReport {
|
static class ProblemToReport {
|
||||||
int line;
|
int line;
|
||||||
int startOffset;
|
int startOffset;
|
||||||
int endOffset;
|
int endOffset;
|
||||||
|
@ -229,7 +229,7 @@ class TeaVMBuild {
|
||||||
CallLocationList locations;
|
CallLocationList locations;
|
||||||
}
|
}
|
||||||
|
|
||||||
private class CallLocationList {
|
static class CallLocationList {
|
||||||
final CallLocation value;
|
final CallLocation value;
|
||||||
final CallLocationList next;
|
final CallLocationList next;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user