Skip to content

Commit 2dc4eea

Browse files
committed
Remove native image hints for TransactionDefinition constants
Closes gh-30854
1 parent db8fa4d commit 2dc4eea

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

spring-tx/src/main/java/org/springframework/transaction/annotation/TransactionRuntimeHints.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2023 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.
@@ -21,7 +21,6 @@
2121
import org.springframework.aot.hint.RuntimeHintsRegistrar;
2222
import org.springframework.aot.hint.TypeHint;
2323
import org.springframework.aot.hint.TypeReference;
24-
import org.springframework.transaction.TransactionDefinition;
2524

2625
/**
2726
* {@link RuntimeHintsRegistrar} implementation that registers runtime hints for
@@ -35,8 +34,7 @@ class TransactionRuntimeHints implements RuntimeHintsRegistrar {
3534

3635
@Override
3736
public void registerHints(RuntimeHints hints, ClassLoader classLoader) {
38-
hints.reflection().registerTypes(TypeReference.listOf(
39-
Isolation.class, Propagation.class, TransactionDefinition.class),
37+
hints.reflection().registerTypes(TypeReference.listOf(Isolation.class, Propagation.class),
4038
TypeHint.builtWith(MemberCategory.DECLARED_FIELDS));
4139
}
4240

0 commit comments

Comments
 (0)