// cancel single key @Override void implCancelKey(WatchKey obj) { WindowsWatchKey key = (WindowsWatchKey) obj; if (key.isValid()) { fk2key.remove(key.fileKey()); ck2key.remove(key.completionKey()); key.invalidate(); } }