mirror of
https://github.com/revanced/smali.git
synced 2025-05-08 10:24:31 +02:00
Fix the offset calculation for paramater annotations
This commit is contained in:
parent
7fe0543b66
commit
c42ffd8dbe
@ -181,7 +181,7 @@ public abstract class AnnotationsDirectory {
|
|||||||
int methodCount = getMethodAnnotationCount();
|
int methodCount = getMethodAnnotationCount();
|
||||||
int parameterAnnotationsOffset = directoryOffset + ANNOTATIONS_START_OFFSET +
|
int parameterAnnotationsOffset = directoryOffset + ANNOTATIONS_START_OFFSET +
|
||||||
fieldCount * FIELD_ANNOTATION_SIZE +
|
fieldCount * FIELD_ANNOTATION_SIZE +
|
||||||
methodCount + METHOD_ANNOTATION_SIZE;
|
methodCount * METHOD_ANNOTATION_SIZE;
|
||||||
return new AnnotationIteratorImpl(parameterAnnotationsOffset, parameterAnnotationCount);
|
return new AnnotationIteratorImpl(parameterAnnotationsOffset, parameterAnnotationCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user