[jboss-cvs] JBossCache/src-50/org/jboss/cache/pojo/util ...
Ben Wang
bwang at jboss.com
Sun Dec 10 19:37:35 EST 2006
User: bwang
Date: 06/12/10 19:37:35
Modified: src-50/org/jboss/cache/pojo/util CacheApiUtil.java
Log:
Check for existence of PojoInstance correctly.
Revision Changes Path
1.3 +2 -2 JBossCache/src-50/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-50/org/jboss/cache/pojo/util/CacheApiUtil.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- CacheApiUtil.java 7 Nov 2006 03:57:03 -0000 1.2
+++ CacheApiUtil.java 11 Dec 2006 00:37:34 -0000 1.3
@@ -17,7 +17,7 @@
/** Utility for the 2.0 Cache API
*
* @author Ben Wang
- * @version $Id: CacheApiUtil.java,v 1.2 2006/11/07 03:57:03 bwang Exp $
+ * @version $Id: CacheApiUtil.java,v 1.3 2006/12/11 00:37:34 bwang Exp $
*/
public class CacheApiUtil
{
@@ -42,6 +42,6 @@
Node node = cache.getRoot().getChild(fqn);
if(node == null) return false;
Map map = node.getData();
- return (map.values().contains(key)) ? true: false;
+ return (map.keySet().contains(key)) ? true: false;
}
}
More information about the jboss-cvs-commits
mailing list