db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/core PersistenceBrokerHandle.java
Date Thu, 04 Sep 2003 21:59:41 GMT
arminw      2003/09/04 14:59:41

  Modified:    src/java/org/apache/ojb/broker/core
                        PersistenceBrokerHandle.java
  Log:
  fix, don't call return in finally block
  
  Revision  Changes    Path
  1.6       +3 -3      db-ojb/src/java/org/apache/ojb/broker/core/PersistenceBrokerHandle.java
  
  Index: PersistenceBrokerHandle.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/core/PersistenceBrokerHandle.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- PersistenceBrokerHandle.java	31 Aug 2003 00:59:44 -0000	1.5
  +++ PersistenceBrokerHandle.java	4 Sep 2003 21:59:41 -0000	1.6
  @@ -27,7 +27,7 @@
   
       public boolean isInTransaction() throws PersistenceBrokerException
       {
  -        return super.isInTransaction();
  +        return isClosed() ? false : super.isInTransaction();
       }
   
       /**
  @@ -51,7 +51,7 @@
               possible to corrupt a closed PB instance.
               */
               setDelegate(null);
  -            return true;
           }
  +        return true;
       }
   }
  
  
  

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


Mime
View raw message