jersey2-guice-impl/src/main/java/com/squarespace/jersey2/guice/BindingUtils.java
private static Annotation getBindingAnnotation(Annotation[] annotations) {
    for (Annotation annotation : annotations) {
      Class<? extends Annotation> type = annotation.annotationType();
      if (type.isAnnotationPresent(BindingAnnotation.class)) {
        return annotation;
      }
    }
    
    return null;
  }
private static Annotation getBindingAnnotation(Annotation[] annotations) {
    for (Annotation annotation : annotations) {
      Class<? extends Annotation> type = annotation.annotationType();
      if (type.isAnnotationPresent(BindingAnnotation.class)) {
        return annotation;
      }
    }
    
    return null;
  }
private static Annotation getBindingAnnotation ( Annotation [ ] annotations ) { for ( Annotation annotation : annotations ) { Class < ? extends Annotation > type = annotation . annotationType ( ) ; if ( type . isAnnotationPresent ( BindingAnnotation . class ) ) { return annotation ; } } return null ; }
Returns the first {@link Annotation} from the given array that
is a {@link BindingAnnotation}.

@see BindingAnnotation
Returns the first { @link Annotation } from the given array that is a { @link BindingAnnotation } .