@Test(expected = UnsupportedOperationException.class) public void testNewCondition() throws Exception { HoldCountLock lock1 = new HoldCountLock(new ReentrantLock()); HoldCountLock lock2 = new HoldCountLock(new ReentrantLock()); CompositeLock compositeLock = new CompositeLock(lock1, lock2); compositeLock.newCondition(); }
@Override public Condition newCondition() { throw new UnsupportedOperationException("This lock does not support conditions"); }
CompositeLock implements Lock { @Override public Condition newCondition() { throw new UnsupportedOperationException("This lock does not support conditions"); } }
CompositeLock implements Lock { @Override public Condition newCondition() { throw new UnsupportedOperationException("This lock does not support conditions"); } CompositeLock(Lock... locks);  CompositeLock(Deque<Lock> locks); }
CompositeLock implements Lock { @Override public Condition newCondition() { throw new UnsupportedOperationException("This lock does not support conditions"); } CompositeLock(Lock... locks);  CompositeLock(Deque<Lock> locks); @Override void lock(); @Override void lockInterruptibly(); @Override boolean tryLock(); @Override boolean tryLock(long time, TimeUnit unit); @Override void unlock(); @Override Condition newCondition(); }
CompositeLock implements Lock { @Override public Condition newCondition() { throw new UnsupportedOperationException("This lock does not support conditions"); } CompositeLock(Lock... locks);  CompositeLock(Deque<Lock> locks); @Override void lock(); @Override void lockInterruptibly(); @Override boolean tryLock(); @Override boolean tryLock(long time, TimeUnit unit); @Override void unlock(); @Override Condition newCondition();  }