Skip to content

Commit

Permalink
Remove native image hints for TransactionDefinition constants
Browse files Browse the repository at this point in the history
Closes gh-30854
  • Loading branch information
sbrannen committed Aug 1, 2023
1 parent db8fa4d commit 2dc4eea
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2022 the original author or authors.
* Copyright 2002-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -21,7 +21,6 @@
import org.springframework.aot.hint.RuntimeHintsRegistrar;
import org.springframework.aot.hint.TypeHint;
import org.springframework.aot.hint.TypeReference;
import org.springframework.transaction.TransactionDefinition;

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

@Override
public void registerHints(RuntimeHints hints, ClassLoader classLoader) {
hints.reflection().registerTypes(TypeReference.listOf(
Isolation.class, Propagation.class, TransactionDefinition.class),
hints.reflection().registerTypes(TypeReference.listOf(Isolation.class, Propagation.class),
TypeHint.builtWith(MemberCategory.DECLARED_FIELDS));
}

Expand Down

0 comments on commit 2dc4eea

Please sign in to comment.