equal
deleted
inserted
replaced
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 { |