/** * Constructs an instance. * * @param attributeName {@code non-null;} the name of the attribute * @param annotations {@code non-null;} the list of annotations * @param byteLength {@code >= 0;} attribute data length in the original * classfile (not including the attribute header) */ public BaseAnnotations(String attributeName, Annotations annotations, int byteLength) { super(attributeName); try { if (annotations.isMutable()) { throw new MutabilityException("annotations.isMutable()"); } } catch (NullPointerException ex) { // Translate the exception. throw new NullPointerException("annotations == null"); } this.annotations = annotations; this.byteLength = byteLength; }
/** * Constructs an instance. * * @param attributeName {@code non-null;} the name of the attribute * @param annotations {@code non-null;} the list of annotations * @param byteLength {@code >= 0;} attribute data length in the original * classfile (not including the attribute header) */ public BaseAnnotations(String attributeName, Annotations annotations, int byteLength) { super(attributeName); try { if (annotations.isMutable()) { throw new MutabilityException("annotations.isMutable()"); } } catch (NullPointerException ex) { // Translate the exception. throw new NullPointerException("annotations == null"); } this.annotations = annotations; this.byteLength = byteLength; }
/** * Constructs an instance. * * @param attributeName {@code non-null;} the name of the attribute * @param annotations {@code non-null;} the list of annotations * @param byteLength {@code >= 0;} attribute data length in the original * classfile (not including the attribute header) */ public BaseAnnotations(String attributeName, Annotations annotations, int byteLength) { super(attributeName); try { if (annotations.isMutable()) { throw new MutabilityException("annotations.isMutable()"); } } catch (NullPointerException ex) { // Translate the exception. throw new NullPointerException("annotations == null"); } this.annotations = annotations; this.byteLength = byteLength; }
/** * Constructs an instance. * * @param attributeName {@code non-null;} the name of the attribute * @param annotations {@code non-null;} the list of annotations * @param byteLength {@code >= 0;} attribute data length in the original * classfile (not including the attribute header) */ public BaseAnnotations(String attributeName, Annotations annotations, int byteLength) { super(attributeName); try { if (annotations.isMutable()) { throw new MutabilityException("annotations.isMutable()"); } } catch (NullPointerException ex) { // Translate the exception. throw new NullPointerException("annotations == null"); } this.annotations = annotations; this.byteLength = byteLength; }
/** * Constructs an instance. * * @param attributeName {@code non-null;} the name of the attribute * @param annotations {@code non-null;} the list of annotations * @param byteLength {@code >= 0;} attribute data length in the original * classfile (not including the attribute header) */ public BaseAnnotations(String attributeName, Annotations annotations, int byteLength) { super(attributeName); try { if (annotations.isMutable()) { throw new MutabilityException("annotations.isMutable()"); } } catch (NullPointerException ex) { // Translate the exception. throw new NullPointerException("annotations == null"); } this.annotations = annotations; this.byteLength = byteLength; }
/** * Constructs an instance. * * @param attributeName {@code non-null;} the name of the attribute * @param annotations {@code non-null;} the list of annotations * @param byteLength {@code >= 0;} attribute data length in the original * classfile (not including the attribute header) */ public BaseAnnotations(String attributeName, Annotations annotations, int byteLength) { super(attributeName); try { if (annotations.isMutable()) { throw new MutabilityException("annotations.isMutable()"); } } catch (NullPointerException ex) { // Translate the exception. throw new NullPointerException("annotations == null"); } this.annotations = annotations; this.byteLength = byteLength; }