Skip to content

Commit bf3dee9

Browse files
committed
Polishing
1 parent a6563a3 commit bf3dee9

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

spring-tx/src/main/java/org/springframework/transaction/jta/JtaTransactionManager.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2013 the original author or authors.
2+
* Copyright 2002-2016 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.
@@ -748,8 +748,7 @@ protected TransactionSynchronizationRegistry findTransactionSynchronizationRegis
748748
}
749749
catch (NamingException ex) {
750750
if (logger.isDebugEnabled()) {
751-
logger.debug(
752-
"No JTA TransactionSynchronizationRegistry found at default JNDI location [" + jndiName + "]", ex);
751+
logger.debug("No JTA TransactionSynchronizationRegistry found at default JNDI location [" + jndiName + "]", ex);
753752
}
754753
}
755754
}
@@ -834,12 +833,12 @@ protected void doBegin(Object transaction, TransactionDefinition definition) {
834833
catch (NotSupportedException ex) {
835834
// assume nested transaction not supported
836835
throw new NestedTransactionNotSupportedException(
837-
"JTA implementation does not support nested transactions", ex);
836+
"JTA implementation does not support nested transactions", ex);
838837
}
839838
catch (UnsupportedOperationException ex) {
840839
// assume nested transaction not supported
841840
throw new NestedTransactionNotSupportedException(
842-
"JTA implementation does not support nested transactions", ex);
841+
"JTA implementation does not support nested transactions", ex);
843842
}
844843
catch (SystemException ex) {
845844
throw new CannotCreateTransactionException("JTA failure on begin", ex);
@@ -894,8 +893,8 @@ protected void applyIsolationLevel(JtaTransactionObject txObject, int isolationL
894893

895894
if (!this.allowCustomIsolationLevels && isolationLevel != TransactionDefinition.ISOLATION_DEFAULT) {
896895
throw new InvalidIsolationLevelException(
897-
"JtaTransactionManager does not support custom isolation levels by default - " +
898-
"switch 'allowCustomIsolationLevels' to 'true'");
896+
"JtaTransactionManager does not support custom isolation levels by default - " +
897+
"switch 'allowCustomIsolationLevels' to 'true'");
899898
}
900899
}
901900

0 commit comments

Comments
 (0)