Closes gh-29928
This commit is contained in:
Johnny Lim
2023-02-04 23:20:29 +09:00
committed by Sébastien Deleuze
parent a7ec6b4a2a
commit 431ae03447
17 changed files with 17 additions and 19 deletions

View File

@@ -18,7 +18,6 @@ package org.springframework.orm.jpa.persistenceunit;
import java.lang.annotation.Annotation;
import java.lang.reflect.Executable;
import java.util.Arrays;
import java.util.List;
import javax.lang.model.element.Modifier;
@@ -68,7 +67,7 @@ import org.springframework.util.ReflectionUtils;
*/
class PersistenceManagedTypesBeanRegistrationAotProcessor implements BeanRegistrationAotProcessor {
private static final List<Class<? extends Annotation>> CALLBACK_TYPES = Arrays.asList(PreUpdate.class,
private static final List<Class<? extends Annotation>> CALLBACK_TYPES = List.of(PreUpdate.class,
PostUpdate.class, PrePersist.class, PostPersist.class, PreRemove.class, PostRemove.class, PostLoad.class);
@Nullable