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

Remove superfluous double check at validTransaction method

    Details

      Description

      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

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                arielcarrera Ariel Carrera
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: