Buggy code:
} } private boolean isFunctioningAsDirectory ( FTPClient ftp , String dir , FTPFile file ) { } private boolean isFunctioningAsFile ( FTPClient ftp , String dir , FTPFile file ) { } public void setRemotedir ( String dir ) { } public void setServer ( String server ) { } public void setPort ( int port ) { } public void setUserid ( String userid ) { } public void setPassword ( String password ) { } public void setAccount ( String pAccount ) { } public void setBinary ( boolean binary ) { } public void setPassive ( boolean passive ) { } public void setVerbose ( boolean verbose ) { } public void setNewer ( boolean newer ) { } public void setTimeDiffMillis ( long timeDiffMillis ) { } public void setTimeDiffAuto ( boolean timeDiffAuto ) { } public void setPreserveLastModified ( boolean preserveLastModified ) { } public void setDepends ( boolean depends ) { } public void setSeparator ( String separator ) { } public void setChmod ( String theMode ) { } public void setUmask ( String theUmask ) { } public void addFileset ( FileSet set ) { } public void setAction ( String action ) throws BuildException { } public void setAction ( FTP . Action action ) throws BuildException { } public void setListing ( File listing ) { } public void setSkipFailedTransfers ( boolean skipFailedTransfers ) { } public void setIgnoreNoncriticalErrors ( boolean ignoreNoncriticalErrors ) { } private void configurationHasBeenSet ( ) { } public void setSystemTypeKey ( FTP . FTPSystemType systemKey ) { } public void setDefaultDateFormatConfig ( String defaultDateFormat ) { } public void setRecentDateFormatConfig ( String recentDateFormat ) { } public void setServerLanguageCodeConfig ( FTP . LanguageCode serverLanguageCode ) { } public void setServerTimeZoneConfig ( String serverTimeZoneId ) { } public void setShortMonthNamesConfig ( String shortMonthNames ) { } public void setRetriesAllowed ( String retriesAllowed ) { } public String getSystemTypeKey ( ) { } public String getDefaultDateFormatConfig ( ) { } public String getRecentDateFormatConfig ( ) { } public String getServerLanguageCodeConfig ( ) { } public String getServerTimeZoneConfig ( ) { } public String getShortMonthNamesConfig ( ) { } FTP . Granularity getTimestampGranularity ( ) { } public void setTimestampGranularity ( FTP . Granularity timestampGranularity ) { } public void setSiteCommand ( String siteCommand ) { } public void setInitialSiteCommand ( String initialCommand ) { } public void setEnableRemoteVerification ( boolean b ) { } protected void checkAttributes ( ) throws BuildException { } protected void executeRetryable ( RetryHandler h , Retryable r , String descr ) throws IOException { } protected int transferFiles ( final FTPClient ftp , FileSet fs ) throws IOException , BuildException { } protected void transferFiles ( FTPClient ftp ) throws IOException , BuildException { } protected String resolveFile ( String file ) { } protected void createParents ( FTPClient ftp , String filename ) throws IOException , BuildException { } private long getTimeDiff ( FTPClient ftp ) { } private File findFileName ( FTPClient ftp ) { } protected boolean isUpToDate ( FTPClient ftp , File localFile , String remoteFile ) throws IOException , BuildException { } protected void doSiteCommand ( FTPClient ftp , String theCMD ) throws IOException , BuildException { boolean rc ; String [ ] myReply = null ; log ( ( "Doing<seq2seq4repair_space>Site<seq2seq4repair_space>Command:<seq2seq4repair_space>" + theCMD ) , MSG_VERBOSE ) ; rc = ftp . sendSiteCommand ( theCMD ) ; if ( ! rc ) { log ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>issue<seq2seq4repair_space>Site<seq2seq4repair_space>Command:<seq2seq4repair_space>" + theCMD ) , MSG_WARN ) ; } else { myReply = ftp . getReplyStrings ( ) ; for ( int x = 0 ; x < ( myReply . length ) ; x ++ ) { <START_BUG> if ( ( myReply [ x ] . indexOf ( "200" ) ) == ( - 1 ) ) { <END_BUG> log ( myReply [ x ] , MSG_WARN ) ; } } } } protected void sendFile ( FTPClient ftp , String dir , String filename ) throws IOException , BuildException { } protected void delFile ( FTPClient ftp , String filename ) throws IOException , BuildException { } protected void rmDir ( FTPClient ftp , String dirname ) throws IOException , BuildException { } protected void getFile ( FTPClient ftp , String dir , String filename ) throws IOException , BuildException { } protected void listFile ( FTPClient ftp , BufferedWriter bw , String filename ) throws IOException , BuildException { } protected void makeRemoteDir ( FTPClient ftp , String dir ) throws IOException , BuildException { } private void handleMkDirFailure ( FTPClient ftp ) throws BuildException { } public void execute ( ) throws BuildException { } public static class Action extends EnumeratedAttribute { private static final String [ ] VALID_ACTIONS = new String [ ] { "send" , "put" , "recv" , "get" , "del" , "delete" , "list" , "mkdir" , "chmod" , "rmdir" , "site" } ; public String [ ] getValues ( ) { } public int getAction ( ) { } } public static class Granularity extends EnumeratedAttribute { private static final String [ ] VALID_GRANULARITIES = new String [ ] { "" , "MINUTE" , "NONE" } ; public String [ ] getValues ( ) { } public long getMilliseconds ( int action ) { } static final FTP . Granularity getDefault ( ) { } } public static class FTPSystemType extends EnumeratedAttribute { private static final String [ ] VALID_SYSTEM_TYPES = new String [ ] { "" , "UNIX" , "VMS" , "WINDOWS" , "OS//2" , "OS//400" , "MVS" } ; public String [ ] getValues ( ) { } static final FTP . FTPSystemType getDefault ( ) { } } public static class LanguageCode extends EnumeratedAttribute { private static final String [ ] VALID_LANGUAGE_CODES = FTP . LanguageCode . getValidLanguageCodes ( ) ; private static String [ ] getValidLanguageCodes ( ) { } public String [ ] getValues ( ) { }

Fix:
if ( ( ( myReply [ x ] ) != null ) && ( ( myReply [ x ] . indexOf ( "200" ) ) == ( - 1 ) ) ) {