Java Code Examples for com.android.dx.rop.annotation.Annotation#throwIfMutable()

The following examples show how to use com.android.dx.rop.annotation.Annotation#throwIfMutable() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CstAnnotation.java    From Box with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs an instance.
 *
 * @param annotation {@code non-null;} the annotation to hold
 */
public CstAnnotation(Annotation annotation) {
    if (annotation == null) {
        throw new NullPointerException("annotation == null");
    }

    annotation.throwIfMutable();

    this.annotation = annotation;
}
 
Example 2
Source File: CstAnnotation.java    From Box with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs an instance.
 *
 * @param annotation {@code non-null;} the annotation to hold
 */
public CstAnnotation(Annotation annotation) {
    if (annotation == null) {
        throw new NullPointerException("annotation == null");
    }

    annotation.throwIfMutable();

    this.annotation = annotation;
}
 
Example 3
Source File: CstAnnotation.java    From J2ME-Loader with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs an instance.
 *
 * @param annotation {@code non-null;} the annotation to hold
 */
public CstAnnotation(Annotation annotation) {
    if (annotation == null) {
        throw new NullPointerException("annotation == null");
    }

    annotation.throwIfMutable();

    this.annotation = annotation;
}
 
Example 4
Source File: CstAnnotation.java    From buck with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs an instance.
 *
 * @param annotation {@code non-null;} the annotation to hold
 */
public CstAnnotation(Annotation annotation) {
    if (annotation == null) {
        throw new NullPointerException("annotation == null");
    }

    annotation.throwIfMutable();

    this.annotation = annotation;
}