mockit.asm.metadata.ObjectWithAttributes Maven / Gradle / Ivy
package mockit.asm.metadata;
import java.util.*;
import javax.annotation.*;
import mockit.asm.metadata.ClassMetadataReader.*;
class ObjectWithAttributes {
@Nullable public List annotations;
public final boolean hasAnnotation(@Nonnull String annotationName) {
if (annotations != null) {
for (AnnotationInfo annotation : annotations) {
if (annotationName.equals(annotation.name)) {
return true;
}
}
}
return false;
}
}