(no commit message)
authorErik Brakkee <erik@brakkee.org>
Sun, 24 Jul 2011 11:53:57 +0000 (11:53 +0000)
committerErik Brakkee <erik@brakkee.org>
Sun, 24 Jul 2011 11:53:57 +0000 (11:53 +0000)
TODO.txt
support/general/src/main/java/org/wamblee/concurrency/ReadWriteLockProxyFactory.java

index 01b0c96b6280f4e035646d7514ff442410e639dc..829827a976f51ef6de060f05a1a04a0b73c4c085 100644 (file)
--- 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. 
index 1ed722880386500b40fba8e42633313268f7b2ff..2534930cd785d95bf4af83d181fda67362aec3fd 100644 (file)
@@ -81,7 +81,6 @@ public class ReadWriteLockProxyFactory<T> {
             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<T> {
             .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();