Replace space indentation with tabs
Issue: SPR-10127
This commit is contained in:
committed by
Chris Beams
parent
1762157ad1
commit
2cf45bad86
@@ -123,7 +123,7 @@ public class CciLocalTransactionManager extends AbstractPlatformTransactionManag
|
||||
protected Object doGetTransaction() {
|
||||
CciLocalTransactionObject txObject = new CciLocalTransactionObject();
|
||||
ConnectionHolder conHolder =
|
||||
(ConnectionHolder) TransactionSynchronizationManager.getResource(getConnectionFactory());
|
||||
(ConnectionHolder) TransactionSynchronizationManager.getResource(getConnectionFactory());
|
||||
txObject.setConnectionHolder(conHolder);
|
||||
return txObject;
|
||||
}
|
||||
|
||||
@@ -717,7 +717,7 @@ public class JtaTransactionManager extends AbstractPlatformTransactionManager
|
||||
if (transactionSynchronizationRegistryClass == null) {
|
||||
// JTA 1.1 API not present - skip.
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("JTA 1.1 [" + TRANSACTION_SYNCHRONIZATION_REGISTRY_CLASS_NAME + "] API not available");
|
||||
logger.debug("JTA 1.1 [" + TRANSACTION_SYNCHRONIZATION_REGISTRY_CLASS_NAME + "] API not available");
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@@ -823,12 +823,12 @@ public class JtaTransactionManager extends AbstractPlatformTransactionManager
|
||||
catch (NotSupportedException ex) {
|
||||
// assume nested transaction not supported
|
||||
throw new NestedTransactionNotSupportedException(
|
||||
"JTA implementation does not support nested transactions", ex);
|
||||
"JTA implementation does not support nested transactions", ex);
|
||||
}
|
||||
catch (UnsupportedOperationException ex) {
|
||||
// assume nested transaction not supported
|
||||
throw new NestedTransactionNotSupportedException(
|
||||
"JTA implementation does not support nested transactions", ex);
|
||||
"JTA implementation does not support nested transactions", ex);
|
||||
}
|
||||
catch (SystemException ex) {
|
||||
throw new CannotCreateTransactionException("JTA failure on begin", ex);
|
||||
@@ -883,7 +883,7 @@ public class JtaTransactionManager extends AbstractPlatformTransactionManager
|
||||
|
||||
if (!this.allowCustomIsolationLevels && isolationLevel != TransactionDefinition.ISOLATION_DEFAULT) {
|
||||
throw new InvalidIsolationLevelException(
|
||||
"JtaTransactionManager does not support custom isolation levels by default - " +
|
||||
"JtaTransactionManager does not support custom isolation levels by default - " +
|
||||
"switch 'allowCustomIsolationLevels' to 'true'");
|
||||
}
|
||||
}
|
||||
@@ -962,7 +962,7 @@ public class JtaTransactionManager extends AbstractPlatformTransactionManager
|
||||
* @see javax.transaction.TransactionManager#resume(javax.transaction.Transaction)
|
||||
*/
|
||||
protected void doJtaResume(JtaTransactionObject txObject, Object suspendedTransaction)
|
||||
throws InvalidTransactionException, SystemException {
|
||||
throws InvalidTransactionException, SystemException {
|
||||
|
||||
if (getTransactionManager() == null) {
|
||||
throw new TransactionSuspensionNotSupportedException(
|
||||
|
||||
@@ -274,7 +274,7 @@ public class WebLogicJtaTransactionManager extends JtaTransactionManager {
|
||||
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("Standard JTA resume threw InvalidTransactionException: " + ex.getMessage() +
|
||||
" - trying WebLogic JTA forceResume");
|
||||
" - trying WebLogic JTA forceResume");
|
||||
}
|
||||
/*
|
||||
weblogic.transaction.TransactionManager wtm =
|
||||
|
||||
@@ -359,7 +359,7 @@ public abstract class AbstractPlatformTransactionManager implements PlatformTran
|
||||
}
|
||||
else if (definition.getPropagationBehavior() == TransactionDefinition.PROPAGATION_REQUIRED ||
|
||||
definition.getPropagationBehavior() == TransactionDefinition.PROPAGATION_REQUIRES_NEW ||
|
||||
definition.getPropagationBehavior() == TransactionDefinition.PROPAGATION_NESTED) {
|
||||
definition.getPropagationBehavior() == TransactionDefinition.PROPAGATION_NESTED) {
|
||||
SuspendedResourcesHolder suspendedResources = suspend(null);
|
||||
if (debugEnabled) {
|
||||
logger.debug("Creating new transaction with name [" + definition.getName() + "]: " + definition);
|
||||
|
||||
@@ -176,7 +176,7 @@ public class DefaultTransactionStatus extends AbstractTransactionStatus {
|
||||
protected SavepointManager getSavepointManager() {
|
||||
if (!isTransactionSavepointManager()) {
|
||||
throw new NestedTransactionNotSupportedException(
|
||||
"Transaction object [" + getTransaction() + "] does not support savepoints");
|
||||
"Transaction object [" + getTransaction() + "] does not support savepoints");
|
||||
}
|
||||
return (SavepointManager) getTransaction();
|
||||
}
|
||||
|
||||
@@ -284,7 +284,7 @@ public abstract class TransactionSynchronizationManager {
|
||||
* @see org.springframework.core.Ordered
|
||||
*/
|
||||
public static void registerSynchronization(TransactionSynchronization synchronization)
|
||||
throws IllegalStateException {
|
||||
throws IllegalStateException {
|
||||
|
||||
Assert.notNull(synchronization, "TransactionSynchronization must not be null");
|
||||
if (!isSynchronizationActive()) {
|
||||
|
||||
@@ -55,27 +55,27 @@ public class TransactionAttributeSourceEditorTests extends TestCase {
|
||||
TransactionAttributeSourceEditor pe = new TransactionAttributeSourceEditor();
|
||||
// TODO need FQN?
|
||||
pe.setAsText(
|
||||
"java.lang.Object.hashCode=PROPAGATION_REQUIRED\n" +
|
||||
"java.lang.Object.equals=PROPAGATION_MANDATORY\n" +
|
||||
"java.lang.Object.*it=PROPAGATION_SUPPORTS\n" +
|
||||
"java.lang.Object.notify=PROPAGATION_SUPPORTS\n" +
|
||||
"java.lang.Object.not*=PROPAGATION_REQUIRED");
|
||||
"java.lang.Object.hashCode=PROPAGATION_REQUIRED\n" +
|
||||
"java.lang.Object.equals=PROPAGATION_MANDATORY\n" +
|
||||
"java.lang.Object.*it=PROPAGATION_SUPPORTS\n" +
|
||||
"java.lang.Object.notify=PROPAGATION_SUPPORTS\n" +
|
||||
"java.lang.Object.not*=PROPAGATION_REQUIRED");
|
||||
TransactionAttributeSource tas = (TransactionAttributeSource) pe.getValue();
|
||||
|
||||
checkTransactionProperties(tas, Object.class.getMethod("hashCode", (Class[]) null),
|
||||
TransactionDefinition.PROPAGATION_REQUIRED);
|
||||
TransactionDefinition.PROPAGATION_REQUIRED);
|
||||
checkTransactionProperties(tas, Object.class.getMethod("equals", new Class[] { Object.class }),
|
||||
TransactionDefinition.PROPAGATION_MANDATORY);
|
||||
TransactionDefinition.PROPAGATION_MANDATORY);
|
||||
checkTransactionProperties(tas, Object.class.getMethod("wait", (Class[]) null),
|
||||
TransactionDefinition.PROPAGATION_SUPPORTS);
|
||||
TransactionDefinition.PROPAGATION_SUPPORTS);
|
||||
checkTransactionProperties(tas, Object.class.getMethod("wait", new Class[] { long.class }),
|
||||
TransactionDefinition.PROPAGATION_SUPPORTS);
|
||||
TransactionDefinition.PROPAGATION_SUPPORTS);
|
||||
checkTransactionProperties(tas, Object.class.getMethod("wait", new Class[] { long.class, int.class }),
|
||||
TransactionDefinition.PROPAGATION_SUPPORTS);
|
||||
TransactionDefinition.PROPAGATION_SUPPORTS);
|
||||
checkTransactionProperties(tas, Object.class.getMethod("notify", (Class[]) null),
|
||||
TransactionDefinition.PROPAGATION_SUPPORTS);
|
||||
TransactionDefinition.PROPAGATION_SUPPORTS);
|
||||
checkTransactionProperties(tas, Object.class.getMethod("notifyAll", (Class[]) null),
|
||||
TransactionDefinition.PROPAGATION_REQUIRED);
|
||||
TransactionDefinition.PROPAGATION_REQUIRED);
|
||||
checkTransactionProperties(tas, Object.class.getMethod("toString", (Class[]) null), -1);
|
||||
}
|
||||
|
||||
@@ -85,21 +85,21 @@ public class TransactionAttributeSourceEditorTests extends TestCase {
|
||||
TransactionAttributeSource tas = (TransactionAttributeSource) pe.getValue();
|
||||
|
||||
checkTransactionProperties(tas, Object.class.getMethod("hashCode", (Class[]) null),
|
||||
TransactionDefinition.PROPAGATION_REQUIRED);
|
||||
TransactionDefinition.PROPAGATION_REQUIRED);
|
||||
checkTransactionProperties(tas, Object.class.getMethod("equals", new Class[] { Object.class }),
|
||||
TransactionDefinition.PROPAGATION_REQUIRED);
|
||||
TransactionDefinition.PROPAGATION_REQUIRED);
|
||||
checkTransactionProperties(tas, Object.class.getMethod("wait", (Class[]) null),
|
||||
TransactionDefinition.PROPAGATION_REQUIRED);
|
||||
TransactionDefinition.PROPAGATION_REQUIRED);
|
||||
checkTransactionProperties(tas, Object.class.getMethod("wait", new Class[] { long.class }),
|
||||
TransactionDefinition.PROPAGATION_REQUIRED);
|
||||
TransactionDefinition.PROPAGATION_REQUIRED);
|
||||
checkTransactionProperties(tas, Object.class.getMethod("wait", new Class[] { long.class, int.class }),
|
||||
TransactionDefinition.PROPAGATION_REQUIRED);
|
||||
TransactionDefinition.PROPAGATION_REQUIRED);
|
||||
checkTransactionProperties(tas, Object.class.getMethod("notify", (Class[]) null),
|
||||
TransactionDefinition.PROPAGATION_REQUIRED);
|
||||
TransactionDefinition.PROPAGATION_REQUIRED);
|
||||
checkTransactionProperties(tas, Object.class.getMethod("notifyAll", (Class[]) null),
|
||||
TransactionDefinition.PROPAGATION_REQUIRED);
|
||||
TransactionDefinition.PROPAGATION_REQUIRED);
|
||||
checkTransactionProperties(tas, Object.class.getMethod("toString", (Class[]) null),
|
||||
TransactionDefinition.PROPAGATION_REQUIRED);
|
||||
TransactionDefinition.PROPAGATION_REQUIRED);
|
||||
}
|
||||
|
||||
private void checkTransactionProperties(TransactionAttributeSource tas, Method method, int propagationBehavior) {
|
||||
|
||||
Reference in New Issue
Block a user