Author: sebb Date: Wed Mar 23 00:49:32 2011 New Revision: 1084430 URL: http://svn.apache.org/viewvc?rev=1084430&view=rev Log: NET-381 - follow-up. Since null entries are no longer rejected by preParse(), it makes sense to reject them in the default case.
Modified: commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPListParseEngine.java Modified: commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPListParseEngine.java URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPListParseEngine.java?rev=1084430&r1=1084429&r2=1084430&view=diff ============================================================================== --- commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPListParseEngine.java (original) +++ commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPListParseEngine.java Wed Mar 23 00:49:32 2011 @@ -219,16 +219,13 @@ public class FTPListParseEngine { * * @return an array of FTPFile objects containing the whole list of * files returned by the server as read by this object's parser. - * <p><b> - * NOTE:</b> This array may contain null members if any of the - * individual file listings failed to parse. The caller should - * check each entry for null before referencing it. + * None of the entries will be null * @exception IOException */ public FTPFile[] getFiles() throws IOException { - return getFiles(FTPFileFilters.ALL); + return getFiles(FTPFileFilters.NON_NULL); } /**