Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-3162

Remove superfluous double check at validTransaction method

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Trivial Trivial
    • 5.9.6.Final
    • 5.9.5.Final
    • Transactional Driver
    • None

      There is a superfluous check at BaseTransactionalDriverXAConnection.validTransaction method.

          public final boolean validTransaction(javax.transaction.Transaction tx) {  
              boolean valid = true;  
              if (_theTransaction != null) {  
                  valid = _theTransaction.equals(tx);  
      *            if (!valid) {  
                      valid = _theTransaction.equals(tx);  
                  }  *
              }  
              return valid;  
          }  
      

      link:

      github

              Unassigned Unassigned
              arielcarrera Ariel Carrera (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: