From 85d310f4988cbef38373ebe8b35996ecc9782899 Mon Sep 17 00:00:00 2001 From: Konloch Date: Sat, 13 Apr 2024 00:40:27 -0600 Subject: [PATCH 1/2] Replace \n With Constants.nl --- .../decompilers/bytecode/MethodNodeDecompiler.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/MethodNodeDecompiler.java b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/MethodNodeDecompiler.java index 6640c7f0..e0a7e7c5 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/MethodNodeDecompiler.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/MethodNodeDecompiler.java @@ -126,7 +126,7 @@ public class MethodNodeDecompiler { if (m.annotationDefault != null) { sb.append(m.annotationDefault); - sb.append("\n"); + sb.append(nl); } InstructionPrinter insnPrinter = new InstructionPrinter(m, args); @@ -182,9 +182,9 @@ public class MethodNodeDecompiler { sb.append(":"); sb.append(printAttr(o, insnPrinter)); sb.append(">"); - sb.append("\n"); + sb.append(nl); } - sb.append("\n"); + sb.append(nl); } } From 43432646ce4a359ea6a0ada73028f8c1e6d8a133 Mon Sep 17 00:00:00 2001 From: Konloch Date: Sat, 13 Apr 2024 00:41:05 -0600 Subject: [PATCH 2/2] Fix Signature Hiding Next Line --- .../decompilers/bytecode/MethodNodeDecompiler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/MethodNodeDecompiler.java b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/MethodNodeDecompiler.java index e0a7e7c5..d452fc49 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/MethodNodeDecompiler.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/MethodNodeDecompiler.java @@ -122,6 +122,7 @@ public class MethodNodeDecompiler { if (m.signature != null) { sb.append(" "); + sb.append(nl); } if (m.annotationDefault != null) {