File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
module/spring-boot-hibernate/src/main/java/org/springframework/boot/hibernate Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 19
19
import jakarta .transaction .TransactionManager ;
20
20
import jakarta .transaction .UserTransaction ;
21
21
import org .hibernate .engine .transaction .jta .platform .internal .AbstractJtaPlatform ;
22
+ import org .jspecify .annotations .Nullable ;
22
23
23
24
import org .springframework .transaction .jta .JtaTransactionManager ;
24
25
import org .springframework .util .Assert ;
@@ -44,14 +45,12 @@ public SpringJtaPlatform(JtaTransactionManager transactionManager) {
44
45
}
45
46
46
47
@ Override
47
- @ SuppressWarnings ("NullAway" ) // TODO: Not sure about returning nullness here
48
- protected TransactionManager locateTransactionManager () {
48
+ protected @ Nullable TransactionManager locateTransactionManager () {
49
49
return this .transactionManager .getTransactionManager ();
50
50
}
51
51
52
52
@ Override
53
- @ SuppressWarnings ("NullAway" ) // TODO: Not sure about returning nullness here
54
- protected UserTransaction locateUserTransaction () {
53
+ protected @ Nullable UserTransaction locateUserTransaction () {
55
54
return this .transactionManager .getUserTransaction ();
56
55
}
57
56
You can’t perform that action at this time.
0 commit comments