Buggy code:
public void setHeader ( String header ) { } public void addHeader ( Javadoc . Html text ) { } public void setFooter ( String footer ) { } public void addFooter ( Javadoc . Html text ) { } public void setBottom ( String bottom ) { } public void addBottom ( Javadoc . Html text ) { } public void setLinkoffline ( String src ) { } public void setGroup ( String src ) { } public void setLink ( String src ) { } public void setNodeprecated ( boolean b ) { } public void setNodeprecatedlist ( boolean b ) { } public void setNotree ( boolean b ) { } public void setNoindex ( boolean b ) { } public void setNohelp ( boolean b ) { } public void setNonavbar ( boolean b ) { } public void setSerialwarn ( boolean b ) { } public void setStylesheetfile ( File f ) { } public void setHelpfile ( File f ) { } public void setDocencoding ( String enc ) { } public void setPackageList ( String src ) { } public Javadoc . LinkArgument createLink ( ) { } public class LinkArgument { private String href ; private boolean offline = false ; private File packagelistLoc ; private boolean resolveLink = false ; public LinkArgument ( ) { } public void setHref ( String hr ) { } public String getHref ( ) { } public void setPackagelistLoc ( File src ) { } public File getPackagelistLoc ( ) { } public void setOffline ( boolean offline ) { } public boolean isLinkOffline ( ) { } public void setResolveLink ( boolean resolve ) { } public boolean shouldResolveLink ( ) { } } public Javadoc . TagArgument createTag ( ) { } static final String [ ] SCOPE_ELEMENTS = new String [ ] { "overview" , "packages" , "types" , "constructors" , "methods" , "fields" } ; public class TagArgument extends FileSet { private String name = null ; private boolean enabled = true ; private String scope = "a" ; public TagArgument ( ) { } public void setName ( String name ) { } public void setScope ( String verboseScope ) throws BuildException { } public void setEnabled ( boolean enabled ) { } public String getParameter ( ) throws BuildException { } } public Javadoc . GroupArgument createGroup ( ) { } public class GroupArgument { private Javadoc . Html title ; private Vector packages = new Vector ( ) ; public GroupArgument ( ) { } public void setTitle ( String src ) { } public void addTitle ( Javadoc . Html text ) { } public String getTitle ( ) { } public void setPackages ( String src ) { } public void addPackage ( Javadoc . PackageName pn ) { } public String getPackages ( ) { } } public void setCharset ( String src ) { } public void setFailonerror ( boolean b ) { } public void setSource ( String source ) { } public void addPackageset ( DirSet packageSet ) { } public void addFileset ( FileSet fs ) { } public void setLinksource ( boolean b ) { } public void setBreakiterator ( boolean b ) { } public void setNoqualifier ( String noqualifier ) { } public void setIncludeNoSourcePackages ( boolean b ) { } public void execute ( ) throws BuildException { if ( "javadoc2" . equals ( getTaskType ( ) ) ) { <START_BUG> log ( "!!<seq2seq4repair_space>javadoc2<seq2seq4repair_space>is<seq2seq4repair_space>deprecated.<seq2seq4repair_space>Use<seq2seq4repair_space>javadoc<seq2seq4repair_space>instead.<seq2seq4repair_space>!!" ) ; <END_BUG> } Vector packagesToDoc = new Vector ( ) ; Path sourceDirs = new Path ( getProject ( ) ) ; if ( ( ( packageList ) != null ) && ( ( sourcePath ) == null ) ) { String msg = "sourcePath<seq2seq4repair_space>attribute<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>set<seq2seq4repair_space>when<seq2seq4repair_space>" + "specifying<seq2seq4repair_space>packagelist." ; throw new BuildException ( msg ) ; } if ( ( sourcePath ) != null ) { sourceDirs . addExisting ( sourcePath ) ; } parsePackages ( packagesToDoc , sourceDirs ) ; if ( ( ( packagesToDoc . size ( ) ) != 0 ) && ( ( sourceDirs . size ( ) ) == 0 ) ) { String msg = "sourcePath<seq2seq4repair_space>attribute<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>set<seq2seq4repair_space>when<seq2seq4repair_space>" + "specifying<seq2seq4repair_space>package<seq2seq4repair_space>names." ; throw new BuildException ( msg ) ; } Vector sourceFilesToDoc = ( ( Vector ) ( sourceFiles . clone ( ) ) ) ; addFileSets ( sourceFilesToDoc ) ; if ( ( ( ( packageList ) == null ) && ( ( packagesToDoc . size ( ) ) == 0 ) ) && ( ( sourceFilesToDoc . size ( ) ) == 0 ) ) { throw new BuildException ( ( "No<seq2seq4repair_space>source<seq2seq4repair_space>files<seq2seq4repair_space>and<seq2seq4repair_space>no<seq2seq4repair_space>packages<seq2seq4repair_space>have<seq2seq4repair_space>" + "been<seq2seq4repair_space>specified." ) ) ; } log ( "Generating<seq2seq4repair_space>Javadoc" , MSG_INFO ) ; Commandline toExecute = ( ( Commandline ) ( cmd . clone ( ) ) ) ; toExecute . setExecutable ( JavaEnvUtils . getJdkExecutable ( "javadoc" ) ) ; if ( ( doctitle ) != null ) { toExecute . createArgument ( ) . setValue ( "-doctitle" ) ; toExecute . createArgument ( ) . setValue ( expand ( doctitle . getText ( ) ) ) ; } if ( ( header ) != null ) { toExecute . createArgument ( ) . setValue ( "-header" ) ; toExecute . createArgument ( ) . setValue ( expand ( header . getText ( ) ) ) ; } if ( ( footer ) != null ) { toExecute . createArgument ( ) . setValue ( "-footer" ) ; toExecute . createArgument ( ) . setValue ( expand ( footer . getText ( ) ) ) ; } if ( ( bottom ) != null ) { toExecute . createArgument ( ) . setValue ( "-bottom" ) ; toExecute . createArgument ( ) . setValue ( expand ( bottom . getText ( ) ) ) ; } if ( ( classpath ) == null ) { classpath = new Path ( getProject ( ) ) . concatSystemClasspath ( "last" ) ; }

Fix:
log ( "Warning:<seq2seq4repair_space>the<seq2seq4repair_space>task<seq2seq4repair_space>name<seq2seq4repair_space><javadoc2><seq2seq4repair_space>is<seq2seq4repair_space>deprecated.<seq2seq4repair_space>Use<seq2seq4repair_space><javadoc><seq2seq4repair_space>instead." , MSG_WARN ) ;