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/transaction/src/java/org/apache/commons/transaction/locking GenericLock.java
Date Thu, 16 Dec 2004 19:14:00 GMT
ozeigermann    2004/12/16 11:14:00

  Modified:    transaction/src/java/org/apache/commons/transaction/locking
                        GenericLock.java
  Log:
  Added missing synchronized for getConflictingOwners
  
  Revision  Changes    Path
  1.4       +5 -5      jakarta-commons/transaction/src/java/org/apache/commons/transaction/locking/GenericLock.java
  
  Index: GenericLock.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/transaction/src/java/org/apache/commons/transaction/locking/GenericLock.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- GenericLock.java	14 Dec 2004 12:12:46 -0000	1.3
  +++ GenericLock.java	16 Dec 2004 19:14:00 -0000	1.4
  @@ -444,7 +444,7 @@
           return (targetLockLevel <= getLevelMaxLock() - currentLockLevel);
       }
       
  -    protected Set getConflictingOwners(Object ownerId, int targetLockLevel,
  +    protected synchronized Set getConflictingOwners(Object ownerId, int targetLockLevel,
               int compatibility) {
   
           LockOwner myLock = (LockOwner) owners.get(ownerId);
  
  
  

---------------------------------------------------------------------
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