Use the shorter form of decodeUnsignedShort

git-svn-id: https://smali.googlecode.com/svn/trunk@479 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
JesusFreke@JesusFreke.com 2009-09-19 03:34:03 +00:00
parent 29f49465ca
commit b09920f24f

View File

@ -43,8 +43,7 @@ public abstract class InstructionWithReference extends Instruction {
protected InstructionWithReference(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) {
super(opcode, buffer, bufferIndex);
int itemIndex = NumberUtils.decodeUnsignedShort(buffer[bufferIndex + 2],
buffer[bufferIndex + 3]);
int itemIndex = NumberUtils.decodeUnsignedShort(buffer, bufferIndex + 2);
lookupReferencedItem(dexFile, opcode, itemIndex);
}