Polish Javadoc for TransactionSynchronizationUtils

This commit is contained in:
Sam Brannen
2021-01-27 14:03:38 +01:00
parent 5e56162394
commit 2d29fcd0bb

View File

@@ -48,7 +48,7 @@ public abstract class TransactionSynchronizationUtils {
* Check whether the given resource transaction manager refers to the given * Check whether the given resource transaction manager refers to the given
* (underlying) resource factory. * (underlying) resource factory.
* @see ResourceTransactionManager#getResourceFactory() * @see ResourceTransactionManager#getResourceFactory()
* @see org.springframework.core.InfrastructureProxy#getWrappedObject() * @see InfrastructureProxy#getWrappedObject()
*/ */
public static boolean sameResourceFactory(ResourceTransactionManager tm, Object resourceFactory) { public static boolean sameResourceFactory(ResourceTransactionManager tm, Object resourceFactory) {
return unwrapResourceIfNecessary(tm.getResourceFactory()).equals(unwrapResourceIfNecessary(resourceFactory)); return unwrapResourceIfNecessary(tm.getResourceFactory()).equals(unwrapResourceIfNecessary(resourceFactory));
@@ -58,7 +58,8 @@ public abstract class TransactionSynchronizationUtils {
* Unwrap the given resource handle if necessary; otherwise return * Unwrap the given resource handle if necessary; otherwise return
* the given handle as-is. * the given handle as-is.
* @since 5.3.4 * @since 5.3.4
* @see org.springframework.core.InfrastructureProxy#getWrappedObject() * @see InfrastructureProxy#getWrappedObject()
* @see ScopedProxyUnwrapper#unwrapIfNecessary(Object)
*/ */
public static Object unwrapResourceIfNecessary(Object resource) { public static Object unwrapResourceIfNecessary(Object resource) {
Assert.notNull(resource, "Resource must not be null"); Assert.notNull(resource, "Resource must not be null");