This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
/** Unlocks the file. Notifies the underlaying impl.
*/
synchronized void unlock () {
synchronized void unlock (FileLock fLock) {
getAbstractFileSystem ().info.unlock (getPath ());
FileLock currentLock = null;
lastModified = null;
if (lock != null) {
// clear my lock
currentLock = (FileLock)lock.get();
lock = null;
}
if (currentLock == fLock) {
/** Tests the lock if it is valid, if not throws exception.
public void releaseLock () {
if (this.isValid()) {
super.releaseLock();
unlock ();
unlock (this);