From f49b14fa217e11e3d4beb779a34458777cabf204 Mon Sep 17 00:00:00 2001 From: REAndroid Date: Wed, 27 Nov 2024 18:54:26 +0100 Subject: [PATCH] [DEX] Fix: Remove trailing spaces on .sparse-switch smali --- src/main/java/com/reandroid/dex/ins/InsSparseSwitchData.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/reandroid/dex/ins/InsSparseSwitchData.java b/src/main/java/com/reandroid/dex/ins/InsSparseSwitchData.java index 61d16b296..ddaa5957c 100644 --- a/src/main/java/com/reandroid/dex/ins/InsSparseSwitchData.java +++ b/src/main/java/com/reandroid/dex/ins/InsSparseSwitchData.java @@ -189,7 +189,8 @@ void toSmaliEntries(SmaliInstruction instruction) { @Override public void appendCode(SmaliWriter writer) throws IOException { - getSmaliDirective().append(writer); + writer.append('.'); + writer.append(getSmaliDirective().getName()); int size = getCount(); writer.indentPlus(); for(int i = 0; i < size; i++){