From: Erik Brakkee Date: Sun, 24 Jul 2011 11:53:57 +0000 (+0000) Subject: (no commit message) X-Git-Tag: wamblee-utils-0.7~14 X-Git-Url: http://wamblee.org/gitweb/?a=commitdiff_plain;h=757e223ab04142b7ba937bd71d2cbc9631bb5a56;p=utils --- 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();