[jboss-cvs] JBossCache/src-50/org/jboss/cache/pojo ...

Ben Wang bwang at jboss.com
Tue Oct 10 09:21:05 EDT 2006


  User: bwang   
  Date: 06/10/10 09:21:05

  Modified:    src-50/org/jboss/cache/pojo  PojoInstance.java
  Log:
  Make PojoUtil transient.
  
  Revision  Changes    Path
  1.3       +3 -1      JBossCache/src-50/org/jboss/cache/pojo/PojoInstance.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: PojoInstance.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src-50/org/jboss/cache/pojo/PojoInstance.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- PojoInstance.java	10 Oct 2006 10:49:54 -0000	1.2
  +++ PojoInstance.java	10 Oct 2006 13:21:05 -0000	1.3
  @@ -44,7 +44,7 @@
      // List of fqns that reference this fqn. Assume list size is not big since it may not be efficient.
      private List referencedBy_ = null;
      private Class clazz_ = null;
  -   private PojoUtil util_ = new PojoUtil();
  +   private transient PojoUtil util_ = new PojoUtil();
   
      public PojoInstance()
      {
  @@ -106,6 +106,7 @@
            throw new IllegalStateException("PojoReference.incrementRefCount(): source fqn: " +
                    sourceFqn + " is already present.");
   
  +      if(util_ == null) util_ = new PojoUtil();
         refCount_ = util_.incrementReferenceCount(sourceFqn, refCount_, referencedBy_);
   //      referencedBy_.add(sourceFqn);
   
  @@ -125,6 +126,7 @@
            throw new IllegalStateException("PojoReference.decrementRefCount(): source fqn: " +
                    sourceFqn + " is not present.");
   
  +      if(util_ == null) util_ = new PojoUtil();
         refCount_ = util_.decrementReferenceCount(sourceFqn, refCount_, referencedBy_);
   //      referencedBy_.remove(sourceFqn);
   
  
  
  



More information about the jboss-cvs-commits mailing list