comments and removed spurious todo:
[vamsas.git] / src / org / vamsas / client / simpleclient / FileWatcher.java
index 83b7b93..bebf1a4 100644 (file)
@@ -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();
   }