Ejemplo n.º 1
0
  /**
   * Remove a lock on this file
   *
   * @param lock FileLock
   * @exception NotLockedException
   */
  public final void removeLock(FileLock lock) throws NotLockedException {

    //	Check if the lock list has been allocated

    if (m_lockList == null) throw new NotLockedException();

    //	Remove the lock from the active list

    synchronized (m_lockList) {

      //	Remove the lock, check if we found the matching lock

      if (m_lockList.removeLock(lock) == null) throw new NotLockedException();
    }
  }