From c42ffd8dbe6559d73008037d334b6fc8fcd5d43b Mon Sep 17 00:00:00 2001 From: Ben Gruver Date: Sat, 3 Nov 2012 17:11:51 -0700 Subject: [PATCH] Fix the offset calculation for paramater annotations --- .../org/jf/dexlib2/dexbacked/util/AnnotationsDirectory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/util/AnnotationsDirectory.java b/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/util/AnnotationsDirectory.java index 3c819361..27d70707 100644 --- a/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/util/AnnotationsDirectory.java +++ b/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/util/AnnotationsDirectory.java @@ -181,7 +181,7 @@ public abstract class AnnotationsDirectory { int methodCount = getMethodAnnotationCount(); int parameterAnnotationsOffset = directoryOffset + ANNOTATIONS_START_OFFSET + fieldCount * FIELD_ANNOTATION_SIZE + - methodCount + METHOD_ANNOTATION_SIZE; + methodCount * METHOD_ANNOTATION_SIZE; return new AnnotationIteratorImpl(parameterAnnotationsOffset, parameterAnnotationCount); }