Consolidated a LOT of static classes (first pass)

This commit is contained in:
Pazaz 2022-06-27 14:24:48 -04:00
parent 9789c5b66e
commit 7ffd30e31c
264 changed files with 7190 additions and 8201 deletions

View file

@ -5,7 +5,7 @@ import org.openrs2.deob.annotation.OriginalClass;
import org.openrs2.deob.annotation.OriginalMember;
import org.openrs2.deob.annotation.Pc;
import java.io.DataInputStream;
import java.io.*;
import java.net.URL;
@OriginalClass("client!ld")
@ -22,7 +22,7 @@ public final class TracingException extends RuntimeException {
try {
@Pc(13) String local13 = "";
if (arg1 != null) {
local13 = Static97.method1961(arg1);
local13 = method1961(arg1);
}
if (arg0 != null) {
if (arg1 != null) {
@ -55,4 +55,48 @@ public final class TracingException extends RuntimeException {
public static void method31(@OriginalArg(1) String arg0) {
System.out.println("Error: " + Static40.method1014("%0a", "\n", arg0));
}
@OriginalMember(owner = "client!hi", name = "a", descriptor = "(ILjava/lang/Throwable;)Ljava/lang/String;")
public static String method1961(@OriginalArg(1) Throwable arg0) throws IOException {
@Pc(24) String local24;
if (arg0 instanceof TracingException) {
@Pc(11) TracingException local11 = (TracingException) arg0;
arg0 = local11.aThrowable1;
local24 = local11.aString3 + " | ";
} else {
local24 = "";
}
@Pc(32) StringWriter local32 = new StringWriter();
@Pc(37) PrintWriter local37 = new PrintWriter(local32);
arg0.printStackTrace(local37);
local37.close();
@Pc(45) String local45 = local32.toString();
@Pc(53) BufferedReader local53 = new BufferedReader(new StringReader(local45));
@Pc(56) String local56 = local53.readLine();
while (true) {
@Pc(59) String local59 = local53.readLine();
if (local59 == null) {
return local24 + "| " + local56;
}
@Pc(65) int local65 = local59.indexOf(40);
@Pc(72) int local72 = local59.indexOf(41, local65 + 1);
@Pc(79) String local79;
if (local65 == -1) {
local79 = local59;
} else {
local79 = local59.substring(0, local65);
}
local79 = local79.trim();
local79 = local79.substring(local79.lastIndexOf(32) + 1);
local79 = local79.substring(local79.lastIndexOf(9) + 1);
local24 = local24 + local79;
if (local65 != -1 && local72 != -1) {
@Pc(126) int local126 = local59.indexOf(".java:", local65);
if (local126 >= 0) {
local24 = local24 + local59.substring(local126 + 5, local72);
}
}
local24 = local24 + ' ';
}
}
}