private void skipClasslessStackFrames ( ) { // skip over any stack trace elements that are unmatched in the classes array if ( classes . isEmpty ( ) ) return ; while ( elements . size ( ) > 0 && ! ! ! elements . peek ( ) . getClassName ( ) . equals ( classes . peek ( ) . getName ( ) ) ) { elements . pop ( ) ; } }
Call after any advancement to bring this . elements into line with this . classes .