File tree Expand file tree Collapse file tree
src/main/java/com/reandroid/dex/ins Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323import com .reandroid .dex .smali .model .SmaliInstruction ;
2424import com .reandroid .dex .smali .model .SmaliInstructionOperand ;
2525import com .reandroid .dex .smali .model .SmaliPayloadPackedSwitch ;
26- import com .reandroid .utils .HexUtil ;
2726import com .reandroid .utils .ObjectsUtil ;
2827
2928import java .io .IOException ;
@@ -151,7 +150,7 @@ void toSmaliEntries(SmaliInstruction instruction) {
151150 @ Override
152151 public void appendCode (SmaliWriter writer ) throws IOException {
153152 getSmaliDirective ().append (writer );
154- writer .append ( HexUtil . toHex ( firstKey . get (), 1 ));
153+ writer .appendHex ( getFirstKey ( ));
155154 writer .indentPlus ();
156155 elements .append (writer );
157156 writer .indentMinus ();
Original file line number Diff line number Diff line change @@ -72,14 +72,14 @@ public void append(SmaliWriter writer) throws IOException {
7272 writer .newLine ();
7373 writer .appendLabelName (getLabelName ());
7474 int value = this .get ();
75- writer .appendComment (HexUtil .toHex (value , 1 ));
75+ writer .appendComment (HexUtil .toSignedHex (value ));
7676 writer .appendResourceIdComment (value );
7777 }
7878
7979 @ Override
8080 public void appendExtra (SmaliWriter writer ) throws IOException {
8181 writer .appendLabelName (getLabelName ());
82- writer .appendComment (HexUtil .toHex (get (), 1 ));
82+ writer .appendComment (HexUtil .toSignedHex (get ()));
8383 }
8484
8585 @ Override
You can’t perform that action at this time.
0 commit comments