@Test(expected = NullPointerException.class) public void acquire_WithNull_Throws() throws InterruptedException { ObjectLockHandler<String> handler = new ObjectLockHandler<>(); handler.acquire(null); }
public void acquire(@NonNull final T object) throws InterruptedException { checkNotNull(object); createLock(object); locks.get(object).lockObject.acquire(); }
ObjectLockHandler { public void acquire(@NonNull final T object) throws InterruptedException { checkNotNull(object); createLock(object); locks.get(object).lockObject.acquire(); } }
ObjectLockHandler { public void acquire(@NonNull final T object) throws InterruptedException { checkNotNull(object); createLock(object); locks.get(object).lockObject.acquire(); }  }
ObjectLockHandler { public void acquire(@NonNull final T object) throws InterruptedException { checkNotNull(object); createLock(object); locks.get(object).lockObject.acquire(); }  void acquire(@NonNull final T object); void release(@NonNull final T object); }
ObjectLockHandler { public void acquire(@NonNull final T object) throws InterruptedException { checkNotNull(object); createLock(object); locks.get(object).lockObject.acquire(); }  void acquire(@NonNull final T object); void release(@NonNull final T object);  }