Buggy code:
public class CovReport extends Task { private File home = null ; private String format = null ; private File tofile = null ; private String type = null ; private Integer percent = null ; private String filters = null ; private File snapshot = null ; private Path sourcePath = null ; private boolean includeSource = true ; private Path coveragePath = null ; private CovReport . Reference reference = null ; public CovReport ( ) { } public void setFilters ( String values ) { } public void setFormat ( CovReport . ReportFormat value ) { } public void setHome ( File value ) { } public void setIncludesource ( boolean value ) { } public void setPercent ( Integer value ) { } public void setSnapshot ( File value ) { } public void setTofile ( File value ) { } public void setType ( CovReport . ReportType value ) { } public Path createCoveragepath ( ) { } public CovReport . Reference createReference ( ) { } public Path createSourcepath ( ) { } public void execute ( ) throws TaskException { } protected String [ ] getParameters ( ) throws TaskException { } protected void checkOptions ( ) throws TaskException { } public static class ReportFormat extends EnumeratedAttribute { public String [ ] getValues ( ) { } } public static class ReportType extends EnumeratedAttribute { public String [ ] getValues ( ) { } } public class Reference { protected Path classPath ; protected ReportFilters filters ; public Path createClasspath ( ) { } public ReportFilters createFilters ( ) { } protected void createEnhancedXMLReport ( ) throws TaskException { if ( ( classPath ) == null ) { throw new TaskException ( "Need<seq2seq4repair_space>a<seq2seq4repair_space>'classpath'<seq2seq4repair_space>element." ) ; } String [ ] paths = classPath . list ( ) ; if ( ( paths . length ) == 0 ) { throw new TaskException ( "Coverage<seq2seq4repair_space>path<seq2seq4repair_space>is<seq2seq4repair_space>invalid.<seq2seq4repair_space>It<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>contain<seq2seq4repair_space>any<seq2seq4repair_space>existing<seq2seq4repair_space>path." ) ; } if ( ( ( filters ) == null ) || ( ( filters . size ( ) ) == 0 ) ) { createFilters ( ) ; getLogger ( ) . debug ( "Adding<seq2seq4repair_space>default<seq2seq4repair_space>include<seq2seq4repair_space>filter<seq2seq4repair_space>to<seq2seq4repair_space>*.*()" ) ; <START_BUG> ReportFilters . Include include = new ReportFilters . Include ( ) ; <END_BUG> filters . addInclude ( include ) ; } try { getLogger ( ) . debug ( "Creating<seq2seq4repair_space>enhanced<seq2seq4repair_space>XML<seq2seq4repair_space>report" ) ; XMLReport report = new XMLReport ( CovReport . this , tofile ) ; report . setReportFilters ( filters ) ; report . setJProbehome ( new File ( home . getParent ( ) ) ) ; Document doc = report . createDocument ( paths ) ; TransformerFactory tfactory = TransformerFactory . newInstance ( ) ; Transformer transformer = tfactory . newTransformer ( ) ; transformer . setOutputProperty ( OutputKeys . INDENT , "yes" ) ; transformer . setOutputProperty ( OutputKeys . METHOD , "xml" ) ; Source src = new DOMSource ( doc ) ; Result res = new StreamResult ( ( "file://////" + ( tofile . toString ( ) ) ) ) ; transformer . transform ( src , res ) ; } catch ( Exception e ) { throw new TaskException ( ( "Error<seq2seq4repair_space>while<seq2seq4repair_space>performing<seq2seq4repair_space>enhanced<seq2seq4repair_space>XML<seq2seq4repair_space>report<seq2seq4repair_space>from<seq2seq4repair_space>file<seq2seq4repair_space>" + ( tofile ) ) , e ) ; } } } }

Fix:
Include include = new Include ( ) ;