in processor/src/main/java/org/apache/commons/weaver/model/Weavable.java [117:129]
public synchronized <T extends Annotation> T getAnnotation(final Class<T> annotationClass) {
if (annotations == null) {
return null;
}
for (final Annotation prospect : annotations) {
if (annotationClass.equals(prospect.annotationType())) {
@SuppressWarnings("unchecked")
final T result = (T) prospect;
return result;
}
}
return null;
}