mirror of
https://github.com/revanced/smali.git
synced 2025-05-08 02:14:32 +02:00
Remove the Instruction template parameter from DexWriter
This commit is contained in:
parent
e9aa2c230f
commit
0cd8417155
@ -76,8 +76,7 @@ public abstract class DexWriter<
|
||||
AnnotationKey extends Annotation, AnnotationSetKey,
|
||||
TypeListKey,
|
||||
FieldKey, MethodKey,
|
||||
EncodedValue, AnnotationElement,
|
||||
Insn extends Instruction> {
|
||||
EncodedValue, AnnotationElement> {
|
||||
public static final int NO_INDEX = -1;
|
||||
public static final int NO_OFFSET = 0;
|
||||
|
||||
|
@ -56,7 +56,7 @@ import java.util.Set;
|
||||
public class DexBuilder extends DexWriter<BuilderStringReference, BuilderStringReference, BuilderTypeReference,
|
||||
BuilderTypeReference, BuilderProtoReference, BuilderFieldReference, BuilderMethodReference, BuilderReference,
|
||||
BuilderClassDef, BuilderAnnotation, BuilderAnnotationSet, BuilderTypeList, BuilderField, BuilderMethod,
|
||||
BuilderEncodedValue, BuilderAnnotationElement, BuilderInstruction> {
|
||||
BuilderEncodedValue, BuilderAnnotationElement> {
|
||||
|
||||
private final BuilderContext context;
|
||||
|
||||
|
@ -32,8 +32,10 @@
|
||||
package org.jf.dexlib2.writer.pool;
|
||||
|
||||
import org.jf.dexlib2.ValueType;
|
||||
import org.jf.dexlib2.iface.*;
|
||||
import org.jf.dexlib2.iface.instruction.Instruction;
|
||||
import org.jf.dexlib2.iface.Annotation;
|
||||
import org.jf.dexlib2.iface.AnnotationElement;
|
||||
import org.jf.dexlib2.iface.ClassDef;
|
||||
import org.jf.dexlib2.iface.Field;
|
||||
import org.jf.dexlib2.iface.reference.*;
|
||||
import org.jf.dexlib2.iface.value.*;
|
||||
import org.jf.dexlib2.immutable.instruction.ImmutableInstructionFactory;
|
||||
@ -50,7 +52,7 @@ public class DexPool extends DexWriter<CharSequence, StringReference, CharSequen
|
||||
FieldReference, MethodReference, Reference, PoolClassDef,
|
||||
Annotation, Set<? extends Annotation>,
|
||||
TypeListPool.Key<? extends Collection<? extends CharSequence>>, Field, PoolMethod,
|
||||
EncodedValue, AnnotationElement, Instruction> {
|
||||
EncodedValue, AnnotationElement> {
|
||||
|
||||
public static DexPool makeDexPool() {
|
||||
return makeDexPool(15);
|
||||
|
Loading…
x
Reference in New Issue
Block a user