private String applyFilters ( String methodName ) { if ( filters . isEmpty ( ) ) { return methodName ; } Reader in = new StringReader ( methodName ) ; for ( TokenFilter tf : filters ) { in = tf . chain ( in ) ; } try { return CharStreams . toString ( in ) ; } catch ( IOException e ) { junit4 . log ( "Could not apply filters to " + methodName + ": " + Throwables . getStackTraceAsString ( e ) , Project . MSG_WARN ) ; return methodName ; } }
Apply filters to a method name .