Exemplo n.º 1
0
 /**
  * A helper for {@link ResolvedJavaMethod#getAnnotations()} that handles the absence of
  * annotations on bridge methods where the bridged method has annotations.
  */
 public static Annotation[] getAnnotations(ResolvedJavaMethod method) {
   Annotation[] a = method.getAnnotations();
   if (a.length == 0 && method.isBridge()) {
     a = getBridgedMethod(method).getAnnotations();
   }
   return a;
 }