Skip to content

Commit 79cc0ec

Browse files
committed
Make prepareSynchronization overridable again
Closes gh-32000
1 parent fdfa428 commit 79cc0ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-tx/src/main/java/org/springframework/transaction/support/AbstractPlatformTransactionManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -571,7 +571,7 @@ private DefaultTransactionStatus newTransactionStatus(
571571
/**
572572
* Initialize transaction synchronization as appropriate.
573573
*/
574-
private void prepareSynchronization(DefaultTransactionStatus status, TransactionDefinition definition) {
574+
protected void prepareSynchronization(DefaultTransactionStatus status, TransactionDefinition definition) {
575575
if (status.isNewSynchronization()) {
576576
TransactionSynchronizationManager.setActualTransactionActive(status.hasTransaction());
577577
TransactionSynchronizationManager.setCurrentTransactionIsolationLevel(

0 commit comments

Comments
 (0)