private void transformFields(IndexMap indexMap, ClassData.Field[] fields) {
    int lastOutFieldIndex = 0;
    for (ClassData.Field field : fields) {
      int outFieldIndex = indexMap.adjustField(field.getFieldIndex());
      classDataOut.writeUleb128(outFieldIndex - lastOutFieldIndex);
      lastOutFieldIndex = outFieldIndex;
      classDataOut.writeUleb128(field.getAccessFlags());
    }
  }
Transform all annotation set ref lists.
android/android_framework/dex-maker/src/main/java/com/android/dx/merge/DexMerger.java