Skip to content

Commit

Permalink
[DEX] safe to smali string
Browse files Browse the repository at this point in the history
  • Loading branch information
REAndroid committed Feb 23, 2024
1 parent 72e6afb commit c480f2f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/com/reandroid/dex/model/Dex.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ public abstract class Dex implements SmaliFormat {
public abstract DexClassRepository getClassRepository();
@Override
public abstract void append(SmaliWriter writer) throws IOException;
public String toSmaliString(){
return SmaliWriter.toStringSafe(this);
}
@Override
public String toString() {
return SmaliWriter.toStringSafe(this);
return toSmaliString();
}
}

0 comments on commit c480f2f

Please sign in to comment.