look for a specified annotation on a method . if there , return it . if not , search it 's containing class . assume that the annotation is marked @inherited . concode_field_sep Method springBeanUtilsDescriptorFetcher concode_elem_sep boolean springChecked concode_field_sep Field getDeclaredField concode_elem_sep Method[] getDeclaredMethods concode_elem_sep Field[] getDeclaredFields concode_elem_sep Constructor<T>[] getDeclaredConstructors concode_elem_sep T setAccessible concode_elem_sep T setAccessible concode_elem_sep Method getDeclaredMethod concode_elem_sep Constructor<T> getDeclaredConstructor concode_elem_sep PropertyDescriptor[] getPropertyDescriptorsAvoidSunBug concode_elem_sep Constructor<T> getConstructor concode_elem_sep T accessDeclaredField concode_elem_sep T accessDeclaredField
T function ( Method arg0 , Class < T > arg1 ) { T loc0 = arg0 . getAnnotation ( arg1 ) ; if ( loc0 != null ) { return loc0 ; } return arg0 . getDeclaringClass ( ) . getAnnotation ( arg1 ) ; }