[jboss-cvs] JBossCache/src/org/jboss/cache/pojo/util ...
Jason Thomas Greene
jgreene at jboss.com
Wed Jun 20 21:33:03 EDT 2007
User: jgreene
Date: 07/06/20 21:33:03
Modified: src/org/jboss/cache/pojo/util CacheApiUtil.java
ObjectUtil.java
Log:
Fix JBCACHE-1057
Revision Changes Path
1.4 +1 -13 JBossCache/src/org/jboss/cache/pojo/util/CacheApiUtil.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CacheApiUtil.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/pojo/util/CacheApiUtil.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- CacheApiUtil.java 23 May 2007 10:28:56 -0000 1.3
+++ CacheApiUtil.java 21 Jun 2007 01:33:03 -0000 1.4
@@ -18,7 +18,7 @@
* Utility for the 2.0 Cache API
*
* @author Ben Wang
- * @version $Id: CacheApiUtil.java,v 1.3 2007/05/23 10:28:56 msurtani Exp $
+ * @version $Id: CacheApiUtil.java,v 1.4 2007/06/21 01:33:03 jgreene Exp $
*/
public class CacheApiUtil
{
@@ -50,16 +50,4 @@
return n.getChildren();
}
}
-
- public static boolean exists(CacheSPI cache, Fqn fqn, Object key)
- {
- if (cache.getCacheLoaderManager() != null)
- {
- // Has cache loader
- return (cache.get(fqn, key) != null);
- }
-
- NodeSPI node = cache.getRoot().getChildDirect(fqn);
- return node != null && node.getKeysDirect().contains(key);
- }
}
1.3 +5 -0 JBossCache/src/org/jboss/cache/pojo/util/ObjectUtil.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ObjectUtil.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/pojo/util/ObjectUtil.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- ObjectUtil.java 30 May 2007 06:08:02 -0000 1.2
+++ ObjectUtil.java 21 Jun 2007 01:33:03 -0000 1.3
@@ -143,4 +143,9 @@
// Let's strip off the line separator and use underscoe instead.
return fqn.replace('/', '_');
}
+
+ public static String identityString(Object object)
+ {
+ return object.getClass().getName() + '@' + Integer.toHexString(System.identityHashCode(object));
+ }
}
More information about the jboss-cvs-commits
mailing list