Buggy code:
public class SourcesPage extends WebPage { private static final Log log = LogFactory . getLog ( SourcesPage . class ) ; public class SourceModel extends AbstractReadOnlyModel < String > { public SourceModel ( ) { } @ Override public String getObject ( ) { if ( ( Strings . isEmpty ( name ) ) && ( Strings . isEmpty ( getPage ( ) . getRequest ( ) . getRequestParameters ( ) . getParameterValue ( SourcesPage . SOURCE ) . toOptionalString ( ) ) ) ) { return "" ; } BufferedReader br = null ; String source = null ; try { <START_BUG> StringBuffer sb = new StringBuffer ( ) ; <END_BUG> source = ( ( name ) != null ) ? name : getPage ( ) . getRequest ( ) . getRequestParameters ( ) . getParameterValue ( SourcesPage . SOURCE ) . toOptionalString ( ) ; InputStream resourceAsStream = getPageTargetClass ( ) . getResourceAsStream ( source ) ; if ( resourceAsStream == null ) { return "Unable<seq2seq4repair_space>to<seq2seq4repair_space>read<seq2seq4repair_space>the<seq2seq4repair_space>source<seq2seq4repair_space>for<seq2seq4repair_space>" + source ; } br = new BufferedReader ( new InputStreamReader ( resourceAsStream ) ) ; while ( br . ready ( ) ) { sb . append ( br . readLine ( ) ) ; sb . append ( "\n" ) ; } int lastDot = source . lastIndexOf ( '.' ) ; if ( lastDot != ( - 1 ) ) { String type = source . substring ( ( lastDot + 1 ) ) ; Renderer renderer = XhtmlRendererFactory . getRenderer ( type ) ; if ( renderer != null ) { return renderer . highlight ( source , sb . toString ( ) , "UTF-8" , true ) ; } } return Strings . escapeMarkup ( sb . toString ( ) , false , true ) . toString ( ) . replaceAll ( "\n" , "<br<seq2seq4repair_space>//>" ) ; } catch ( IOException e ) { SourcesPage . log . error ( ( ( ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>read<seq2seq4repair_space>resource<seq2seq4repair_space>stream<seq2seq4repair_space>for:<seq2seq4repair_space>" + source ) + ";<seq2seq4repair_space>Page=" ) + ( page . toString ( ) ) ) , e ) ; return "" ; } finally { IOUtils . closeQuietly ( br ) ; } } } public class PackagedResourcesModel extends AbstractReadOnlyModel < List < String > > { private final List < String > resources = new ArrayList < String > ( ) ; public PackagedResourcesModel ( ) { } protected void onDetach ( ) { } @ Override public List < String > getObject ( ) { if ( resources . isEmpty ( ) ) { get ( getPageTargetClass ( ) ) ; } return resources ; } private void getPackageContents ( URL packageListing ) { } private final void addResources ( final Class < ? > scope , final AppendingStringBuffer relativePath , final File dir ) { } private void get ( Class < ? > scope ) { } private void scanJarFile ( Class < ? > scope , String packageRef , JarFile jf ) { } } public class FilesBrowser extends WebMarkupContainer { public FilesBrowser ( String id ) { } } public class CodePanel extends WebMarkupContainer { public CodePanel ( String id ) { } } public static final String PAGE_CLASS = ( SourcesPage . class . getSimpleName ( ) ) + "_class" ; public static final String SOURCE = "source" ; private String name ; private transient Class < ? extends Page > page ; private final Component codePanel ; private final Label filename ; public void setName ( String name ) { } public String getName ( ) { } public < C extends Page > SourcesPage ( final PageParameters params ) { } public static PageParameters generatePageParameters ( Page page ) { } public static PageParameters generatePageParameters ( Class < ? extends Page > clazz , String fileName ) { } private String getPageParam ( ) { } private Class < ? extends Page > getPageTargetClass ( ) { } }

Fix:
StringBuilder sb = new StringBuilder ( ) ;