Fix typo in method index OOB error message

This commit is contained in:
Ben Gruver 2013-11-26 17:37:26 -08:00
parent dc802b0660
commit d3ba85b2ee

View File

@ -184,7 +184,7 @@ public class DexBackedDexFile extends BaseDexBuffer implements DexFile {
public int getMethodIdItemOffset(int methodIndex) {
if (methodIndex < 0 || methodIndex >= methodCount) {
throw new InvalidItemIndex(methodIndex, "Method findex out of bounds: %d", methodIndex);
throw new InvalidItemIndex(methodIndex, "Method index out of bounds: %d", methodIndex);
}
return methodStartOffset + methodIndex*MethodIdItem.ITEM_SIZE;
}