jdk/test/java/nio/file/WatchService/SensitivityModifier.java
changeset 19831 8303faa784f3
parent 19586 08f37e67272c
child 23010 6dadb192ad81
equal deleted inserted replaced
19830:9c6ba80438f9 19831:8303faa784f3
    98                             break;
    98                             break;
    99                         }
    99                         }
   100                     }
   100                     }
   101                     key.reset();
   101                     key.reset();
   102                     key = watcher.poll(1, TimeUnit.SECONDS);
   102                     key = watcher.poll(1, TimeUnit.SECONDS);
   103                 } while (key != null && !eventReceived);
   103                 } while (key != null);
   104 
   104 
   105                 // we should have received at least one ENTRY_MODIFY event
   105                 // we should have received at least one ENTRY_MODIFY event
   106                 if (eventReceived) {
   106                 if (eventReceived) {
   107                     System.out.println("Event OK");
   107                     System.out.println("Event OK");
   108                 } else {
   108                 } else {