From ce3af724d5eab3e1a7515d1c0e9118960c6b7ffb Mon Sep 17 00:00:00 2001 From: erik Date: Sun, 24 Jul 2011 11:53:57 +0000 Subject: [PATCH] --- TODO.txt | 2 ++ .../org/wamblee/concurrency/ReadWriteLockProxyFactory.java | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/TODO.txt b/TODO.txt index 01b0c96b..829827a9 100644 --- a/TODO.txt +++ b/TODO.txt @@ -1,3 +1,5 @@ +* check preservation of newlines when exporting XML + * classpath uri resolver, class javadocs. * APIs for Files in the XML parsing. * API javadoc in general. diff --git a/support/general/src/main/java/org/wamblee/concurrency/ReadWriteLockProxyFactory.java b/support/general/src/main/java/org/wamblee/concurrency/ReadWriteLockProxyFactory.java index 1ed72288..2534930c 100644 --- a/support/general/src/main/java/org/wamblee/concurrency/ReadWriteLockProxyFactory.java +++ b/support/general/src/main/java/org/wamblee/concurrency/ReadWriteLockProxyFactory.java @@ -81,7 +81,6 @@ public class ReadWriteLockProxyFactory { READ, WRITE, NONE; public Object handleCase(LockingSwitch aSwitch) throws Throwable { - //System.out.println("locking type:" + this); switch (this) { case READ: { return aSwitch.readLock(); @@ -105,7 +104,7 @@ public class ReadWriteLockProxyFactory { .writeLock(); // Read-write locking for the cache of locking types. - private final ReentrantReadWriteLock cacheRwlock = new ReentrantReadWriteLock(); + private final ReentrantReadWriteLock cacheRwlock = new ReentrantReadWriteLock(true); private final ReentrantReadWriteLock.ReadLock cacheRlock = cacheRwlock.readLock(); private final ReentrantReadWriteLock.WriteLock cacheWlock = cacheRwlock .writeLock(); -- 2.31.1