Skip to content

Commit e58a45b

Browse files
committed
polishing
1 parent 1f89243 commit e58a45b

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

org.springframework.transaction/src/main/java/org/springframework/transaction/support/AbstractPlatformTransactionManager.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2010 the original author or authors.
2+
* Copyright 2002-2011 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -847,15 +847,13 @@ else if (status.isNewTransaction()) {
847847
else if (status.hasTransaction()) {
848848
if (status.isLocalRollbackOnly() || isGlobalRollbackOnParticipationFailure()) {
849849
if (status.isDebug()) {
850-
logger.debug(
851-
"Participating transaction failed - marking existing transaction as rollback-only");
850+
logger.debug("Participating transaction failed - marking existing transaction as rollback-only");
852851
}
853852
doSetRollbackOnly(status);
854853
}
855854
else {
856855
if (status.isDebug()) {
857-
logger.debug(
858-
"Participating transaction failed - letting transaction originator decide on rollback");
856+
logger.debug("Participating transaction failed - letting transaction originator decide on rollback");
859857
}
860858
}
861859
}
@@ -885,8 +883,7 @@ else if (status.hasTransaction()) {
885883
* @throws TransactionException in case of rollback failure
886884
* @see #doRollback
887885
*/
888-
private void doRollbackOnCommitException(DefaultTransactionStatus status, Throwable ex)
889-
throws TransactionException {
886+
private void doRollbackOnCommitException(DefaultTransactionStatus status, Throwable ex) throws TransactionException {
890887
try {
891888
if (status.isNewTransaction()) {
892889
if (status.isDebug()) {

0 commit comments

Comments
 (0)