mirror of
https://github.com/revanced/smali.git
synced 2025-05-31 12:50:13 +02:00
use assert. duh
git-svn-id: https://smali.googlecode.com/svn/trunk@417 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
parent
e9c67dbb9c
commit
4da483a55b
@ -30,9 +30,6 @@ package org.jf.dexlib;
|
|||||||
|
|
||||||
import org.jf.dexlib.Util.Input;
|
import org.jf.dexlib.Util.Input;
|
||||||
import org.jf.dexlib.Util.AnnotatedOutput;
|
import org.jf.dexlib.Util.AnnotatedOutput;
|
||||||
import org.jf.dexlib.Util.Hex;
|
|
||||||
|
|
||||||
import junit.framework.Assert;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This item represents a map_list item from the dex specification. It contains a
|
* This item represents a map_list item from the dex specification. It contains a
|
||||||
@ -84,7 +81,7 @@ public class MapItem extends Item<MapItem> {
|
|||||||
|
|
||||||
/** {@inheritDoc} */
|
/** {@inheritDoc} */
|
||||||
protected void writeItem(AnnotatedOutput out) {
|
protected void writeItem(AnnotatedOutput out) {
|
||||||
Assert.assertTrue(getOffset() > 0);
|
assert getOffset() > 0;
|
||||||
Section[] sections = dexFile.getOrderedSections();
|
Section[] sections = dexFile.getOrderedSections();
|
||||||
|
|
||||||
out.annotate("map_size: 0x" + Integer.toHexString(sections.length + 2) + " (" +
|
out.annotate("map_size: 0x" + Integer.toHexString(sections.length + 2) + " (" +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user