1
1
/*
2
- * Copyright 2002-2018 the original author or authors.
2
+ * Copyright 2002-2021 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -45,10 +45,10 @@ public abstract class TransactionSynchronizationUtils {
45
45
46
46
47
47
/**
48
- * Check whether the given resource transaction managers refers to the given
48
+ * Check whether the given resource transaction manager refers to the given
49
49
* (underlying) resource factory.
50
50
* @see ResourceTransactionManager#getResourceFactory()
51
- * @see org.springframework.core. InfrastructureProxy#getWrappedObject()
51
+ * @see InfrastructureProxy#getWrappedObject()
52
52
*/
53
53
public static boolean sameResourceFactory (ResourceTransactionManager tm , Object resourceFactory ) {
54
54
return unwrapResourceIfNecessary (tm .getResourceFactory ()).equals (unwrapResourceIfNecessary (resourceFactory ));
@@ -57,7 +57,7 @@ public static boolean sameResourceFactory(ResourceTransactionManager tm, Object
57
57
/**
58
58
* Unwrap the given resource handle if necessary; otherwise return
59
59
* the given handle as-is.
60
- * @see org.springframework.core. InfrastructureProxy#getWrappedObject()
60
+ * @see InfrastructureProxy#getWrappedObject()
61
61
*/
62
62
static Object unwrapResourceIfNecessary (Object resource ) {
63
63
Assert .notNull (resource , "Resource must not be null" );
@@ -106,8 +106,8 @@ public static void triggerBeforeCompletion() {
106
106
try {
107
107
synchronization .beforeCompletion ();
108
108
}
109
- catch (Throwable tsex ) {
110
- logger .error ("TransactionSynchronization.beforeCompletion threw exception" , tsex );
109
+ catch (Throwable ex ) {
110
+ logger .error ("TransactionSynchronization.beforeCompletion threw exception" , ex );
111
111
}
112
112
}
113
113
}
@@ -170,8 +170,8 @@ public static void invokeAfterCompletion(@Nullable List<TransactionSynchronizati
170
170
try {
171
171
synchronization .afterCompletion (completionStatus );
172
172
}
173
- catch (Throwable tsex ) {
174
- logger .error ("TransactionSynchronization.afterCompletion threw exception" , tsex );
173
+ catch (Throwable ex ) {
174
+ logger .error ("TransactionSynchronization.afterCompletion threw exception" , ex );
175
175
}
176
176
}
177
177
}
0 commit comments