Buggy code:
public class CreateRssFeed { public static void main ( String [ ] args ) { boolean mergeFiles = false ; String propsFile = args [ 0 ] ; Properties prop = new Properties ( ) ; try { prop . load ( new FileInputStream ( propsFile ) ) ; } catch ( FileNotFoundException e1 ) { e1 . printStackTrace ( ) ; } catch ( IOException e1 ) { e1 . printStackTrace ( ) ; } String show = prop . getProperty ( "show" ) ; String description = prop . getProperty ( "description" ) ; String cover = prop . getProperty ( "cover" ) ; String headerXml = prop . getProperty ( "header" ) ; String footerXml = prop . getProperty ( "footer" ) ; if ( ( args . length ) >= 2 ) { mergeFiles = Boolean . parseBoolean ( args [ 1 ] ) ; } LinkedList < String > items = new LinkedList < String > ( ) ; File dir = new File ( ( ( "//var//www//" + show ) + "//" ) ) ; List < File > list = Arrays . asList ( dir . listFiles ( ) ) ; Collections . sort ( list ) ; if ( mergeFiles ) { for ( int i = ( list . size ( ) ) - 1 ; i >= 0 ; i -- ) { File f = list . get ( i ) ; String s = f . getName ( ) ; if ( ( s . endsWith ( ".mp3" ) ) && ( s . contains ( "_(" ) ) ) { s = s . substring ( ( ( s . indexOf ( "_(" ) ) + 2 ) ) ; s = s . substring ( 0 , s . indexOf ( ")" ) ) ; int indexOf = Integer . parseInt ( s ) ; String otherName = f . getPath ( ) . replace ( ( "_(" + indexOf ) , ( "_(" + ( indexOf - 1 ) ) ) ; if ( indexOf == 1 ) otherName = f . getPath ( ) . replace ( ( ( "_(" + indexOf ) + ")" ) , "" ) ; try { CreateRssFeed . cat ( f . getPath ( ) , otherName ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } } } } items . add ( ( ( "\t<lastBuildDate>" + ( CreateRssFeed . getDateAsRFC822String ( new Date ( ) ) ) ) + "<//lastBuildDate>" ) ) ; list = Arrays . asList ( dir . listFiles ( ) ) ; Collections . sort ( list ) ; for ( int i = ( list . size ( ) ) - 1 ; i >= 0 ; i -- ) { File f = list . get ( i ) ; if ( f . getName ( ) . endsWith ( ".mp3" ) ) { Path path = FileSystems . getDefault ( ) . getPath ( ( ( "//var//www//" + show ) + "//" ) , f . getName ( ) ) ; BasicFileAttributes attr ; try { attr = Files . readAttributes ( path , BasicFileAttributes . class ) ; Date time = new Date ( attr . creationTime ( ) . toMillis ( ) ) ; items . add ( "\t<item>" ) ; items . add ( ( ( "\t\t<title>" + ( f . getName ( ) . replaceAll ( "_" , "<seq2seq4repair_space>" ) . replace ( ".mp3" , "" ) ) ) + "<//title>" ) ) ; items . add ( ( ( "\t\t<description>" + description ) + "<//description>" ) ) ; items . add ( ( ( "\t\t<itunes:subtitle>" + description ) + "<//itunes:subtitle>" ) ) ; <START_BUG> items . add ( ( ( "\t\t<itunes:summary>" + description ) + "//itunes:summary>" ) ) ; <END_BUG> items . add ( ( ( "\t\t<itunes:image<seq2seq4repair_space>href=\'" + cover ) + "'<seq2seq4repair_space>//>" ) ) ; items . add ( ( ( "\t\t<pubDate>" + ( CreateRssFeed . getDateAsRFC822String ( time ) ) ) + "<//pubDate>" ) ) ; items . add ( ( ( ( ( ( ( "\t\t<enclosure<seq2seq4repair_space>url=\'http:////128.204.195.198//" + show ) + "//" ) + ( f . getName ( ) ) ) + "'<seq2seq4repair_space>length='" ) + ( f . length ( ) ) ) + "'<seq2seq4repair_space>type='audio//mpeg'//>" ) ) ; items . add ( ( ( ( ( "\t\t<guid>http:////128.204.195.198//" + show ) + "//" ) + ( f . getName ( ) ) ) + "<//guid>" ) ) ; items . add ( "\t<//item>" ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } } } try { BufferedWriter bw = new BufferedWriter ( new FileWriter ( "feed.xml" ) ) ; CreateRssFeed . writeFile ( headerXml , bw ) ; for ( String s : items ) { bw . write ( s ) ; bw . newLine ( ) ; } CreateRssFeed . writeFile ( footerXml , bw ) ; bw . flush ( ) ; bw . close ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } } public static SimpleDateFormat RFC822DATEFORMAT = new SimpleDateFormat ( "EEE',<seq2seq4repair_space>'dd'<seq2seq4repair_space>'MMM'<seq2seq4repair_space>'yyyy'<seq2seq4repair_space>'HH:mm:ss'<seq2seq4repair_space>'Z" , Locale . US ) ; public static String getDateAsRFC822String ( Date date ) { } private static void cat ( String path , String otherName ) throws IOException { } private static void writeFile ( String string , BufferedWriter bw ) throws IOException { } }

Fix:
items . add ( ( ( "\t\t<itunes:summary>" + description ) + "<//itunes:summary>" ) ) ;