/** * Constructs an instance. * * @param annotation {@code non-null;} annotation to represent * @param dexFile {@code non-null;} dex output */ public AnnotationItem(Annotation annotation, DexFile dexFile) { /* * The write size isn't known up-front because (the variable-lengthed) * leb128 type is used to represent some things. */ super(ALIGNMENT, -1); if (annotation == null) { throw new NullPointerException("annotation == null"); } this.annotation = annotation; this.type = null; this.encodedForm = null; addContents(dexFile); }
/** * Constructs an instance. * * @param annotation {@code non-null;} annotation to represent * @param dexFile {@code non-null;} dex output */ public AnnotationItem(Annotation annotation, DexFile dexFile) { /* * The write size isn't known up-front because (the variable-lengthed) * leb128 type is used to represent some things. */ super(ALIGNMENT, -1); if (annotation == null) { throw new NullPointerException("annotation == null"); } this.annotation = annotation; this.type = null; this.encodedForm = null; addContents(dexFile); }
/** * Constructs an instance. * * @param annotation {@code non-null;} annotation to represent * @param dexFile {@code non-null;} dex output */ public AnnotationItem(Annotation annotation, DexFile dexFile) { /* * The write size isn't known up-front because (the variable-lengthed) * leb128 type is used to represent some things. */ super(ALIGNMENT, -1); if (annotation == null) { throw new NullPointerException("annotation == null"); } this.annotation = annotation; this.type = null; this.encodedForm = null; addContents(dexFile); }
/** * Constructs an instance. * * @param annotation {@code non-null;} annotation to represent * @param dexFile {@code non-null;} dex output */ public AnnotationItem(Annotation annotation, DexFile dexFile) { /* * The write size isn't known up-front because (the variable-lengthed) * leb128 type is used to represent some things. */ super(ALIGNMENT, -1); if (annotation == null) { throw new NullPointerException("annotation == null"); } this.annotation = annotation; this.type = null; this.encodedForm = null; addContents(dexFile); }