Skip to content

Commit 0c547ad

Browse files
committed
Javadoc
1 parent f729612 commit 0c547ad

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

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

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,17 @@
3636
import org.apache.commons.io.filefilter.TrueFileFilter;
3737

3838
/**
39-
* FileAlterationObserver represents the state of files below a root directory, checking the file system and notifying listeners of create, change or delete
39+
* Represents the state of files below a root directory, checking the file system and notifying listeners of create, change or delete
4040
* events.
4141
* <p>
4242
* To use this implementation:
4343
* </p>
44-
* <ul>
44+
* <ol>
4545
* <li>Create {@link FileAlterationListener} implementation(s) that process the file/directory create, change and delete events</li>
4646
* <li>Register the listener(s) with a {@link FileAlterationObserver} for the appropriate directory.</li>
4747
* <li>Either register the observer(s) with a {@link FileAlterationMonitor} or run manually.</li>
48-
* </ul>
49-
* <h2>Basic Usage</h2> Create a {@link FileAlterationObserver} for the directory and register the listeners:
48+
* </ol>
49+
* <h2>Observing a Directory</h2> Create a {@link FileAlterationObserver} for the directory and register the listeners:
5050
*
5151
* <pre>
5252
* File directory = new File(FileUtils.current(), "src");
@@ -110,15 +110,15 @@
110110
* observer.addListener(...);
111111
* </pre>
112112
*
113-
* <h2>FileEntry</h2>
113+
* <h2>Filtering File Entries</h2>
114114
* <p>
115115
* {@link FileEntry} represents the state of a file or directory, capturing {@link File} attributes at a point in time. Custom implementations of
116116
* {@link FileEntry} can be used to capture additional properties that the basic implementation does not support. The {@link FileEntry#refresh(File)} method is
117117
* used to determine if a file or directory has changed since the last check and stores the current state of the {@link File}'s properties.
118118
* </p>
119119
* <h2>Deprecating Serialization</h2>
120120
* <p>
121-
* <em>Serialization is deprecated and will be removed in 3.0.</em>
121+
* <em>Serialization is deprecated and will be removed in 3.0. Consider using a serialization proxy.</em>
122122
* </p>
123123
*
124124
* @see FileAlterationListener
@@ -135,7 +135,9 @@ public class FileAlterationObserver implements Serializable {
135135
public static final class Builder extends AbstractOriginSupplier<FileAlterationObserver, Builder> {
136136

137137
private FileEntry rootEntry;
138+
138139
private FileFilter fileFilter;
140+
139141
private IOCase ioCase;
140142

141143
private Builder() {
@@ -149,7 +151,7 @@ private File checkOriginFile() {
149151
/**
150152
* Gets a new {@link FileAlterationObserver} instance.
151153
*
152-
* @throws IOException if an I/O error occurs converting to an {@link File} using {@link AbstractOrigin#getFile()}.
154+
* @throws IOException if an I/O error occurs converting to an {@link File} using {@link AbstractOrigin#getFile()}.
153155
* @see #getUnchecked()
154156
*/
155157
@Override
@@ -189,7 +191,6 @@ public Builder setRootEntry(final FileEntry rootEntry) {
189191
this.rootEntry = rootEntry;
190192
return asThis();
191193
}
192-
193194
}
194195

195196
private static final long serialVersionUID = 1185122225658782848L;

0 commit comments

Comments
 (0)