/guava/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java
disallowedPriorLocks.put( exception) ;
disallowedPriorLocks.put ( acquiredLock, exception ) ;
ExampleStackTrace path = acquiredLock.findPathTo(this, seen); if (path == null) { allowedPriorLocks.put(acquiredLock, new ExampleStackTrace(acquiredLock, this)); } else { PotentialDeadlockException exception = new PotentialDeadlockException(acquiredLock, this, path); <extra_id_0> policy.handlePotentialDeadlock(exception); } } @CheckForNull private ExampleStackTrace findPathTo(LockGraphNode node, Set<LockGraphNode> seen) { if (!seen.add(this)) {