diff --git a/jdbc/src/main/java/org/springframework/transaction/support/TransactionSynchronizationManager.java b/jdbc/src/main/java/org/springframework/transaction/support/TransactionSynchronizationManager.java index a6c2ce35bf..c0c48350f7 100644 --- a/jdbc/src/main/java/org/springframework/transaction/support/TransactionSynchronizationManager.java +++ b/jdbc/src/main/java/org/springframework/transaction/support/TransactionSynchronizationManager.java @@ -28,9 +28,9 @@ public static void bindResource(DataSource key, Connection value) { resource.put(key, value); } - public static Connection unbindResource(DataSource key) { + public static void unbindResource(DataSource key) { final Map resource = resources.get(); - return resource.remove(key); + resource.remove(key); } } diff --git a/jdbc/src/test/java/org/springframework/transaction/support/TransactionSynchronizationManagerTest.java b/jdbc/src/test/java/org/springframework/transaction/support/TransactionSynchronizationManagerTest.java new file mode 100644 index 0000000000..b2b28c7d8c --- /dev/null +++ b/jdbc/src/test/java/org/springframework/transaction/support/TransactionSynchronizationManagerTest.java @@ -0,0 +1,6 @@ +package org.springframework.transaction.support; + +class TransactionSynchronizationManagerTest { + + +} \ No newline at end of file