From: jprocter Date: Fri, 20 Jan 2006 16:19:45 +0000 (+0000) Subject: comments and removed spurious todo: X-Git-Tag: Release_0.2~364 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=630fc18b7e3e711662dcacc4dfb2f560feda8c4a;p=vamsas.git comments and removed spurious todo: git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@156 be28352e-c001-0410-b1a7-c7978e42abec --- diff --git a/src/org/vamsas/client/simpleclient/FileWatcher.java b/src/org/vamsas/client/simpleclient/FileWatcher.java index 83b7b93..bebf1a4 100644 --- a/src/org/vamsas/client/simpleclient/FileWatcher.java +++ b/src/org/vamsas/client/simpleclient/FileWatcher.java @@ -7,8 +7,10 @@ import java.io.File; /** - * @author jim Watches a particular file for its creation, deletion, or - * modification. + * Watches a particular file for its creation, deletion, or + * modification. The watcher is thread safe and different + * instances watching the state of a particular file carry + * their own state record for the file. */ public class FileWatcher { @@ -32,7 +34,7 @@ public class FileWatcher { subjectLock=null; } /** - * + * * @return true if subject exists and is locked by another process. */ private boolean checkLock() { @@ -42,7 +44,6 @@ public class FileWatcher { } subjectLock = new Lock(subject); if (subjectLock.isLocked()) { - // subjectLock.release(); return false; } clearLock(); @@ -121,7 +122,6 @@ public class FileWatcher { */ public FileWatcher(File subject) { - // TODO Auto-generated constructor stub this.subject = subject; setState(); }