private final void fixReportCheckstyle ( final Element root ) { final Collection < Element > elements ; // Found elements elements = root . getElementsByTag ( "h2" ) ; if ( ! elements . isEmpty ( ) ) { elements . iterator ( ) . next ( ) . tagName ( "h1" ) ; } root . select ( "img[src=\"images/rss.png\"]" ) . remove ( ) ; }
Fixes the Checkstyle report page .