[jboss-cvs] JBossCache/src-50/org/jboss/cache/pojo/memory ...
Elias Ross
genman at noderunner.net
Mon Nov 6 18:32:17 EST 2006
User: genman
Date: 06/11/06 18:32:17
Modified: src-50/org/jboss/cache/pojo/memory
FieldPersistentReference.java
Log:
JBCACHE-485 - Set.contains() remove() and add() O(1) ops now
Revision Changes Path
1.3 +5 -3 JBossCache/src-50/org/jboss/cache/pojo/memory/FieldPersistentReference.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: FieldPersistentReference.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src-50/org/jboss/cache/pojo/memory/FieldPersistentReference.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- FieldPersistentReference.java 27 Jun 2006 05:25:43 -0000 1.2
+++ FieldPersistentReference.java 6 Nov 2006 23:32:17 -0000 1.3
@@ -31,14 +31,16 @@
*/
public class FieldPersistentReference extends PersistentReference
{
+
+ private String name;
+
public FieldPersistentReference(Field field, int referenceType)
{
super(field != null ? field.getDeclaringClass() : null, field, referenceType);
+ if (field != null)
this.name = field.getName();
}
- private String name;
-
public synchronized Object rebuildReference() throws Exception
{
// A reference to guarantee the value is not being GCed during while the value is being rebuilt
More information about the jboss-cvs-commits
mailing list