@Test public void unlockingBeforeLockingDoesntThrowException() throws ComponentLookupException { this.lockManager.unlock(this.docRef); }
@Override public void unlock(@Nonnull final DocumentReference document) { Lock lock = this.locks.get(document); if (lock == null) { return; } try { lock.unlock(); } catch (IllegalMonitorStateException ex) { this.logger.debug("Lock was unexpectedly unlocked already: {}", ex.getMessage(), ex); } }
TimeoutDocumentLockManager implements DocumentLockManager { @Override public void unlock(@Nonnull final DocumentReference document) { Lock lock = this.locks.get(document); if (lock == null) { return; } try { lock.unlock(); } catch (IllegalMonitorStateException ex) { this.logger.debug("Lock was unexpectedly unlocked already: {}", ex.getMessage(), ex); } } }
TimeoutDocumentLockManager implements DocumentLockManager { @Override public void unlock(@Nonnull final DocumentReference document) { Lock lock = this.locks.get(document); if (lock == null) { return; } try { lock.unlock(); } catch (IllegalMonitorStateException ex) { this.logger.debug("Lock was unexpectedly unlocked already: {}", ex.getMessage(), ex); } }  }
TimeoutDocumentLockManager implements DocumentLockManager { @Override public void unlock(@Nonnull final DocumentReference document) { Lock lock = this.locks.get(document); if (lock == null) { return; } try { lock.unlock(); } catch (IllegalMonitorStateException ex) { this.logger.debug("Lock was unexpectedly unlocked already: {}", ex.getMessage(), ex); } }  @Override void lock(@Nonnull final DocumentReference document); @Override void unlock(@Nonnull final DocumentReference document); }
TimeoutDocumentLockManager implements DocumentLockManager { @Override public void unlock(@Nonnull final DocumentReference document) { Lock lock = this.locks.get(document); if (lock == null) { return; } try { lock.unlock(); } catch (IllegalMonitorStateException ex) { this.logger.debug("Lock was unexpectedly unlocked already: {}", ex.getMessage(), ex); } }  @Override void lock(@Nonnull final DocumentReference document); @Override void unlock(@Nonnull final DocumentReference document);  }