Menu

#23 skip filter must be alone (correction joined)

open
nobody
None
5
2006-01-04
2006-01-04
chrisclara
No

DESCRIPTION. You have a watcher with first a skip
filter and then another filter or more. If the first
filter matches a line, then the others filters will
never work. Every new line in the file can't be
printed in the watcher. Consequence a skip filter must
be used alone.
CORRECTION. In the method run() of the class
TextFileWatcher.java change the condition "if
(f.matches(line))" with this "if (line != null &&
f.matches(line))" before the line "line =
f.handleWatcherMatch(line, firstUpdate);".

Christophe.

Discussion


Log in to post a comment.