return result;
}
public static <T extends Annotation> T get(Class<?> givenClass, Class<T> annotationClass) {
T result = givenClass.getAnnotation(annotationClass);
if (result == null) {
<BUG>if (givenClass != Object.class) {
Class superClass = givenClass.getSuperclass();
return (T) get(superClass, annotationClass);</BUG>
}
}

return result;
}
public static <T extends Annotation> T get(Class<?> givenClass, Class<T> annotationClass) {
T result = givenClass.getAnnotation(annotationClass);
if (result == null) {
Class superClass = getSuperClassIfNotObjectClass(givenClass);
if (superClass != null) {
return (T) get(superClass, annotationClass);
}
}
