Skip to content

Commit 62ff893

Browse files
author
Gary Gregory
committed
No need for an empty block
Use inline comments
1 parent bc73e5b commit 62ff893

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -232,22 +232,21 @@ public void addListener(final FileAlterationListener listener) {
232232
*/
233233
public void checkAndNotify() {
234234

235-
/* fire onStart() */
235+
// fire onStart()
236236
for (final FileAlterationListener listener : listeners) {
237237
listener.onStart(this);
238238
}
239239

240-
/* fire directory/file events */
240+
// fire directory/file events
241241
final File rootFile = rootEntry.getFile();
242242
if (rootFile.exists()) {
243243
checkAndNotify(rootEntry, rootEntry.getChildren(), listFiles(rootFile));
244244
} else if (rootEntry.isExists()) {
245245
checkAndNotify(rootEntry, rootEntry.getChildren(), FileUtils.EMPTY_FILE_ARRAY);
246-
} else {
247-
// Didn't exist and still doesn't
248246
}
247+
// Else: Didn't exist and still doesn't
249248

250-
/* fire onStop() */
249+
// fire onStop()
251250
for (final FileAlterationListener listener : listeners) {
252251
listener.onStop(this);
253252
}

0 commit comments

Comments
 (0)