From: erik Date: Sun, 24 Jul 2011 11:53:57 +0000 (+0000) Subject: (no commit message) X-Git-Tag: BEFORE_SVN_TO_GIT~4 X-Git-Url: http://wamblee.org/gitweb/?a=commitdiff_plain;ds=inline;h=ce3af724d5eab3e1a7515d1c0e9118960c6b7ffb;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();