public StackTraceElement get(StackTraceElement[] stackTraceElements) {
    Preconditions.checkNotNull(stackTraceElements, "The stack trace elements cannot be null.");
    for (final StackTraceElement element : stackTraceElements) {
      String className = element.getClassName();

      if (!shouldBeSkipped(className)) {
        return element;
      }
    }
    throw new AssertionError();
  }
public StackTraceElement get(StackTraceElement[] stackTraceElements) {
    Preconditions.checkNotNull(stackTraceElements, "The stack trace elements cannot be null.");
    for (final StackTraceElement element : stackTraceElements) {
      String className = element.getClassName();

      if (!shouldBeSkipped(className)) {
        return element;
      }
    }
    throw new AssertionError();
  }
public StackTraceElement get ( StackTraceElement [ ] stackTraceElements ) { Preconditions . checkNotNull ( stackTraceElements , "The stack trace elements cannot be null." ) ; for ( final StackTraceElement element : stackTraceElements ) { String className = element . getClassName ( ) ; if ( ! shouldBeSkipped ( className ) ) { return element ; } } throw new AssertionError ( ) ; }
Returns the calling line of code. The selected line is the nearest to the top of the stack that
is not skipped.
Returns the calling line of code . The selected line is the nearest to the top of the stack that is not skipped .