Allocate objects only when it's necessary
Closes gh-23036
This commit is contained in:
committed by
Sam Brannen
parent
6f2f5bb8c1
commit
6964ed33bf
@@ -637,11 +637,11 @@ public abstract class AbstractPlatformTransactionManager implements PlatformTran
|
||||
private void resumeAfterBeginException(
|
||||
Object transaction, @Nullable SuspendedResourcesHolder suspendedResources, Throwable beginEx) {
|
||||
|
||||
String exMessage = "Inner transaction begin exception overridden by outer transaction resume exception";
|
||||
try {
|
||||
resume(transaction, suspendedResources);
|
||||
}
|
||||
catch (RuntimeException | Error resumeEx) {
|
||||
String exMessage = "Inner transaction begin exception overridden by outer transaction resume exception";
|
||||
logger.error(exMessage, beginEx);
|
||||
throw resumeEx;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user