/** * Get the parent of the given element from the deque * * @param deque the deque * @param s the annotation * @return the parent annotation */ private static <T extends Annotation> AnnotationNode<T> getParent( Deque<AnnotationNode<T>> deque, T s) { while (testNodePassed(deque.peek(), s)) { deque.pop(); } return deque.peek(); }
/** * Get the parent of the given element from the deque * * @param deque the deque * @param s the annotation * @return the parent annotation */ private static <T extends Annotation> AnnotationNode<T> getParent( Deque<AnnotationNode<T>> deque, T s) { while (testNodePassed(deque.peek(), s)) { deque.pop(); } return deque.peek(); }