From e58a45bff71e103c5115d15dcbacc2512b21f27e Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Tue, 11 Oct 2011 01:13:41 +0000 Subject: [PATCH] polishing --- .../support/AbstractPlatformTransactionManager.java | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/org.springframework.transaction/src/main/java/org/springframework/transaction/support/AbstractPlatformTransactionManager.java b/org.springframework.transaction/src/main/java/org/springframework/transaction/support/AbstractPlatformTransactionManager.java index ee147383c13..dbb9f85fb4c 100644 --- a/org.springframework.transaction/src/main/java/org/springframework/transaction/support/AbstractPlatformTransactionManager.java +++ b/org.springframework.transaction/src/main/java/org/springframework/transaction/support/AbstractPlatformTransactionManager.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2010 the original author or authors. + * Copyright 2002-2011 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -847,15 +847,13 @@ public abstract class AbstractPlatformTransactionManager implements PlatformTran else if (status.hasTransaction()) { if (status.isLocalRollbackOnly() || isGlobalRollbackOnParticipationFailure()) { if (status.isDebug()) { - logger.debug( - "Participating transaction failed - marking existing transaction as rollback-only"); + logger.debug("Participating transaction failed - marking existing transaction as rollback-only"); } doSetRollbackOnly(status); } else { if (status.isDebug()) { - logger.debug( - "Participating transaction failed - letting transaction originator decide on rollback"); + logger.debug("Participating transaction failed - letting transaction originator decide on rollback"); } } } @@ -885,8 +883,7 @@ public abstract class AbstractPlatformTransactionManager implements PlatformTran * @throws TransactionException in case of rollback failure * @see #doRollback */ - private void doRollbackOnCommitException(DefaultTransactionStatus status, Throwable ex) - throws TransactionException { + private void doRollbackOnCommitException(DefaultTransactionStatus status, Throwable ex) throws TransactionException { try { if (status.isNewTransaction()) { if (status.isDebug()) {