Buggy code:
public class XMLValidateTask extends Task { public static String DEFAULT_XML_READER_CLASSNAME = "org.apache.crimson.parser.XMLReaderImpl" ; protected static String INIT_FAILED_MSG = "Could<seq2seq4repair_space>not<seq2seq4repair_space>start<seq2seq4repair_space>xml<seq2seq4repair_space>validation:<seq2seq4repair_space>" ; protected boolean failOnError = true ; protected boolean warn = true ; protected boolean lenient = false ; protected String readerClassName = XMLValidateTask . DEFAULT_XML_READER_CLASSNAME ; protected File file = null ; protected Vector filesets = new Vector ( ) ; protected XMLReader xmlReader = null ; protected XMLValidateTask . ValidatorErrorHandler errorHandler = new XMLValidateTask . ValidatorErrorHandler ( ) ; protected Hashtable features = new Hashtable ( ) ; public Vector dtdLocations = new Vector ( ) ; protected Path classpath ; public void setClassName ( String className ) { } public void setClasspath ( Path classpath ) throws TaskException { } public void setClasspathRef ( Reference r ) throws TaskException { } public void setFailOnError ( boolean fail ) { } public void setFile ( File file ) { } public void setLenient ( boolean bool ) { } public void setWarn ( boolean bool ) { } public void addFileset ( FileSet set ) { } public Path createClasspath ( ) throws TaskException { } public XMLValidateTask . DTDLocation createDTD ( ) { } public void execute ( ) throws TaskException { int fileProcessed = 0 ; if ( ( ( file ) == null ) && ( ( filesets . size ( ) ) == 0 ) ) { throw new TaskException ( "Specify<seq2seq4repair_space>at<seq2seq4repair_space>least<seq2seq4repair_space>one<seq2seq4repair_space>source<seq2seq4repair_space>-<seq2seq4repair_space>a<seq2seq4repair_space>file<seq2seq4repair_space>or<seq2seq4repair_space>a<seq2seq4repair_space>fileset." ) ; } initValidator ( ) ; if ( ( file ) != null ) { if ( ( ( file . exists ( ) ) && ( file . canRead ( ) ) ) && ( file . isFile ( ) ) ) { doValidate ( file ) ; fileProcessed ++ ; } else { String errorMsg = ( "File<seq2seq4repair_space>" + ( file ) ) + "<seq2seq4repair_space>cannot<seq2seq4repair_space>be<seq2seq4repair_space>read" ; if ( failOnError ) throw new TaskException ( errorMsg ) ; else log ( errorMsg , MSG_ERR ) ; } } for ( int i = 0 ; i < ( filesets . size ( ) ) ; i ++ ) { FileSet fs = ( ( FileSet ) ( filesets . elementAt ( i ) ) ) ; DirectoryScanner ds = fs . getDirectoryScanner ( project ) ; String [ ] files = ds . getIncludedFiles ( ) ; for ( int j = 0 ; j < ( files . length ) ; j ++ ) { File srcFile = new File ( fs . getDir ( project ) , files [ j ] ) ; doValidate ( srcFile ) ; fileProcessed ++ ; } } <START_BUG> log ( ( fileProcessed + "<seq2seq4repair_space>file(s)<seq2seq4repair_space>have<seq2seq4repair_space>been<seq2seq4repair_space>successfully<seq2seq4repair_space>validated." ) ) ; <END_BUG> } protected EntityResolver getEntityResolver ( ) { } private boolean setFeature ( String feature , boolean value , boolean warn ) { } private void doValidate ( File afile ) throws TaskException { } private void initValidator ( ) throws TaskException { } public static class DTDLocation { private String publicId = null ; private String location = null ; public void setLocation ( String location ) { } public void setPublicId ( String publicId ) { } public String getLocation ( ) { } public String getPublicId ( ) { } } protected class ValidatorErrorHandler implements ErrorHandler { protected File currentFile = null ; protected String lastErrorMessage = null ; protected boolean failed = false ; public boolean getFailure ( ) { } public void error ( SAXParseException exception ) { } public void fatalError ( SAXParseException exception ) { } public void init ( File file ) { } public void warning ( SAXParseException exception ) { } private String getMessage ( SAXParseException e ) { } private void doLog ( SAXParseException e , int logLevel ) { } } private class LocalResolver implements EntityResolver { private Hashtable fileDTDs = new Hashtable ( ) ; private Hashtable resourceDTDs = new Hashtable ( ) ; private Hashtable urlDTDs = new Hashtable ( ) ; public LocalResolver ( ) { } public void registerDTD ( String publicId , String location ) { } public void registerDTD ( XMLValidateTask . DTDLocation location ) { } public InputSource resolveEntity ( String publicId , String systemId ) throws SAXException { } } }

Fix:
getLogger ( ) . info ( ( fileProcessed + "<seq2seq4repair_space>file(s)<seq2seq4repair_space>have<seq2seq4repair_space>been<seq2seq4repair_space>successfully<seq2seq4repair_space>validated." ) ) ;