public static <T extends Annotation>boolean hasAnnotation(Object o,Class<T> annCls){
  return o != null && hasAnnotation(o.getClass(),annCls);
}

public static < T extends Annotation > boolean hasAnnotation ( Object o , Class < T > annCls ) { return o != null && hasAnnotation ( o . getClass ( ) , annCls ) ; }
indicates if class has given annotation .
