[jboss-cvs] JBossCache/src-50/org/jboss/cache/pojo/collection ...
Ben Wang
bwang at jboss.com
Wed Nov 8 04:52:01 EST 2006
User: bwang
Date: 06/11/08 04:52:01
Modified: src-50/org/jboss/cache/pojo/collection CachedSetImpl.java
Log:
Added back toString to enable recursion detection (see reentrant annotation).
Revision Changes Path
1.11 +13 -0 JBossCache/src-50/org/jboss/cache/pojo/collection/CachedSetImpl.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CachedSetImpl.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src-50/org/jboss/cache/pojo/collection/CachedSetImpl.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- CachedSetImpl.java 6 Nov 2006 23:32:16 -0000 1.10
+++ CachedSetImpl.java 8 Nov 2006 09:52:01 -0000 1.11
@@ -164,6 +164,19 @@
return node.getChildren().size();
}
+ public String toString()
+ {
+ StringBuffer buf = new StringBuffer();
+ for (Iterator it = iterator(); it.hasNext();)
+ {
+ Object key = it.next();
+ buf.append("[").append(key).append("]");
+ if (it.hasNext()) buf.append(", ");
+ }
+
+ return buf.toString();
+ }
+
/**
* Return a long with "count" as the high 32 bits.
* TODO should be able to use java.lang.Long, but some CacheLoader don't
More information about the jboss-cvs-commits
mailing list