/guava/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java
} : new CycleDetectingReentrantReadWriteLock( new LockGraphNode( lockName) , fair) ;
: new CycleDetectingReentrantReadWriteLock ( new LockGraphNode ( lockName ) , fair ) ; }
public ReentrantReadWriteLock newReentrantReadWriteLock(String lockName) { return newReentrantReadWriteLock(lockName, false); } public ReentrantReadWriteLock newReentrantReadWriteLock(String lockName, boolean fair) { return policy == Policies.DISABLED ? new ReentrantReadWriteLock(fair) <extra_id_0> private static final ConcurrentMap< Class<? extends Enum<?>>, Map<? extends Enum<?>, LockGraphNode>> lockGraphNodesPerType = new MapMaker().weakKeys().makeMap(); public static <E extends Enum<E>> WithExplicitOrdering<E> newInstanceWithExplicitOrdering( Class<E> enumClass, Policy policy) { checkNotNull(enumClass);