/guava/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java
LockGraphNode node = lock.getLockGraphNode( ) ; ArrayList<LockGraphNode> acquiredLockList = requireNonNull( acquiredLocks.get( ) ) ;
ArrayList<LockGraphNode> acquiredLockList = requireNonNull ( acquiredLocks.get ( ) ) ; LockGraphNode node = lock.getLockGraphNode ( ) ;
node.checkAcquiredLocks(policy, acquiredLockList); acquiredLockList.add(node); } } private static void lockStateChanged(CycleDetectingLock lock) { if (!lock.isAcquiredByCurrentThread()) { <extra_id_0> for (int i = acquiredLockList.size() - 1; i >= 0; i--) { if (acquiredLockList.get(i) == node) { acquiredLockList.remove(i); break; } }