No need for an empty block
Use inline comments
MODIFY
src/main/java/org/apache/commons/io/monitor/FileAlterationObserver.java
src/main/java/org/apache/commons/io/monitor/FileAlterationObserver.java
@@ -232,22 +232,21 @@ public void addListener(final FileAlterationListener listener) {
*/
public void checkAndNotify() {
- /* fire onStart() */
+ // fire onStart()
for (final FileAlterationListener listener : listeners) {
listener.onStart(this);
}
- /* fire directory/file events */
+ // fire directory/file events
final File rootFile = rootEntry.getFile();
if (rootFile.exists()) {
checkAndNotify(rootEntry, rootEntry.getChildren(), listFiles(rootFile));
} else if (rootEntry.isExists()) {
checkAndNotify(rootEntry, rootEntry.getChildren(), FileUtils.EMPTY_FILE_ARRAY);
- } else {
- // Didn't exist and still doesn't
}
+ // Else: Didn't exist and still doesn't
- /* fire onStop() */
+ // fire onStop()
for (final FileAlterationListener listener : listeners) {
listener.onStop(this);
}

No need for an empty block

Use inline comments