commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ozeigerm...@apache.org
Subject cvs commit: jakarta-commons-sandbox/transaction/src/java/org/apache/commons/transaction/memory TransactionalMapWrapper.java
Date Sun, 06 Jun 2004 12:46:43 GMT
ozeigermann    2004/06/06 05:46:43

  Modified:    transaction/src/java/org/apache/commons/transaction/memory
                        TransactionalMapWrapper.java
  Log:
  Moved isEmpty checking into context for better reuseability
  
  Revision  Changes    Path
  1.19      +9 -5      jakarta-commons-sandbox/transaction/src/java/org/apache/commons/transaction/memory/TransactionalMapWrapper.java
  
  Index: TransactionalMapWrapper.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/transaction/src/java/org/apache/commons/transaction/memory/TransactionalMapWrapper.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- TransactionalMapWrapper.java	6 Jun 2004 12:36:29 -0000	1.18
  +++ TransactionalMapWrapper.java	6 Jun 2004 12:46:43 -0000	1.19
  @@ -310,7 +310,7 @@
           if (txContext == null) {
               return wrapped.isEmpty();
           } else {
  -            return (size() == 0);
  +            return txContext.isEmpty();
           }
       }
   
  @@ -611,6 +611,10 @@
               deletes.clear();
               changes.clear();
               adds.clear();
  +        }
  +
  +        protected boolean isEmpty() {
  +            return (size() == 0); 
           }
   
           protected void merge() {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message