public static DexPool makeDexPool(int api) {
StringPool stringPool = new StringPool();
TypePool typePool = new TypePool(stringPool);
FieldPool fieldPool = new FieldPool(stringPool, typePool);
TypeListPool typeListPool = new TypeListPool(typePool);
ProtoPool protoPool = new ProtoPool(stringPool, typePool, typeListPool);
MethodPool methodPool = new MethodPool(stringPool, typePool, protoPool);
AnnotationPool annotationPool = new AnnotationPool(stringPool, typePool, fieldPool, methodPool);
AnnotationSetPool annotationSetPool = new AnnotationSetPool(annotationPool);
ClassPool classPool = new ClassPool(stringPool, typePool, fieldPool, methodPool, annotationSetPool,
typeListPool);
return new DexPool(api, stringPool, typePool, protoPool, fieldPool, methodPool, classPool, typeListPool,
annotationPool, annotationSetPool);
}