Skip to content

Commit 89ef772

Browse files
committed
Javadoc
1 parent a01bbfb commit 89ef772

3 files changed

Lines changed: 25 additions & 7 deletions

File tree

src/main/java/org/apache/commons/io/monitor/FileAlterationObserver.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff 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;

src/main/java/org/apache/commons/io/monitor/FileEntry.java

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff 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");

src/main/java/org/apache/commons/io/output/StringBuilderWriter.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
public 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
/**

0 commit comments

Comments
 (0)