Fix issue when writing parameter annotations

This commit is contained in:
Ben Gruver
2013-05-03 21:02:52 -07:00
parent 05201785fe
commit d54761778b

View File

@ -666,7 +666,7 @@ public abstract class DexWriter<
for (MethodKey method: methods) {
int offset = classSection.getAnnotationSetRefListOffset(method);
if (offset != DexWriter.NO_OFFSET) {
methodAnnotations++;
parameterAnnotations++;
tempBuffer.putInt(methodSection.getMethodIndex(method));
tempBuffer.putInt(offset);
}