Skip to content

Commit

Permalink
Fix formatting and typos
Browse files Browse the repository at this point in the history
  • Loading branch information
azzazzel committed Jun 28, 2021
1 parent 011c875 commit 4702cf8
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ private void detectContext() {
// and still be associated with current thread.
// See WFLY-4327
int status = userTransaction.getStatus();
if(status== Status.STATUS_ROLLEDBACK || status== Status.STATUS_MARKED_ROLLBACK)
{
if(status == Status.STATUS_ROLLEDBACK || status == Status.STATUS_MARKED_ROLLBACK) {
logger.error("Cleanup of transaction that has been rolled back previously.");
userTransaction.rollback();
status = userTransaction.getStatus();
Expand All @@ -71,7 +70,7 @@ private void detectContext() {
if (registry != null) {
logger.debug("Most likely in a CMT compatible context, using TransactionSynchronizationRegistry.");
} else {
logger.warn("No JTA APIs available in this context. No transation managment can be performed.");
logger.warn("No JTA APIs available in this context. No transaction management can be performed.");
}
}
}
Expand Down

0 comments on commit 4702cf8

Please sign in to comment.