private final void fixReportFailsafe ( final Element root ) { final Collection < Element > elements ; // Found elements final Element heading ; // First h2 heading elements = root . getElementsByTag ( "h2" ) ; if ( ! elements . isEmpty ( ) ) { heading = elements . iterator ( ) . next ( ) ; heading . tagName ( "h1" ) ; heading . text ( "Failsafe Report" ) ; } }
Fixes the Failsafe report page .