File tree Expand file tree Collapse file tree
src/main/java/org/apache/commons/io Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -357,7 +357,8 @@ private void doDelete(final FileEntry entry) {
357357 }
358358
359359 /**
360- * Lists the files
360+ * Lists the files in {@code file}.
361+ *
361362 * @param file The file to list files for
362363 * @param entry the parent entry
363364 * @return The child files
@@ -429,14 +430,14 @@ public void initialize() throws Exception {
429430 /**
430431 * Lists the contents of a directory
431432 *
432- * @param file The file to list the contents of
433+ * @param directory The directory to list.
433434 * @return the directory contents or a zero length array if
434435 * the empty or the file is not a directory
435436 */
436- private File [] listFiles (final File file ) {
437+ private File [] listFiles (final File directory ) {
437438 File [] children = null ;
438- if (file .isDirectory ()) {
439- children = file .listFiles (fileFilter );
439+ if (directory .isDirectory ()) {
440+ children = directory .listFiles (fileFilter );
440441 }
441442 if (children == null ) {
442443 children = FileUtils .EMPTY_FILE_ARRAY ;
Original file line number Diff line number Diff line change @@ -57,13 +57,28 @@ public class FileEntry implements Serializable {
5757
5858 static final FileEntry [] EMPTY_FILE_ENTRY_ARRAY = {};
5959
60+ /** The parent. */
6061 private final FileEntry parent ;
62+
63+ /** My children. */
6164 private FileEntry [] children ;
65+
66+ /** Monitored file. */
6267 private final File file ;
68+
69+ /** Monitored file name. */
6370 private String name ;
71+
72+ /** Whether the file exists. */
6473 private boolean exists ;
74+
75+ /** Whether the file is a directory or not. */
6576 private boolean directory ;
77+
78+ /** The file's last modified timestamp. */
6679 private SerializableFileTime lastModified = SerializableFileTime .EPOCH ;
80+
81+ /** The file's length. */
6782 private long length ;
6883
6984 /**
@@ -78,8 +93,8 @@ public FileEntry(final File file) {
7893 /**
7994 * Constructs a new monitor for a specified {@link File}.
8095 *
81- * @param parent The parent
82- * @param file The file being monitored
96+ * @param parent The parent.
97+ * @param file The file being monitored.
8398 */
8499 public FileEntry (final FileEntry parent , final File file ) {
85100 this .file = Objects .requireNonNull (file , "file" );
Original file line number Diff line number Diff line change 3737public class StringBuilderWriter extends Writer implements Serializable {
3838
3939 private static final long serialVersionUID = -146927496096066153L ;
40+
41+ /** The append target. */
4042 private final StringBuilder builder ;
4143
4244 /**
You can’t perform that action at this time.
0 commit comments