Remove redundant array length check

Closes gh-33655
This commit is contained in:
KimJuHyun 2024-10-05 23:40:14 +09:00 committed by Sébastien Deleuze
parent c73e76cf2e
commit f1cbbd2aa8

View File

@ -83,9 +83,6 @@ class TransactionBeanRegistrationAotProcessor implements BeanRegistrationAotProc
public void applyTo(GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode) {
RuntimeHints runtimeHints = generationContext.getRuntimeHints();
Class<?>[] proxyInterfaces = ClassUtils.getAllInterfacesForClass(this.beanClass);
if (proxyInterfaces.length == 0) {
return;
}
for (Class<?> proxyInterface : proxyInterfaces) {
runtimeHints.reflection().registerType(proxyInterface, MemberCategory.INVOKE_DECLARED_METHODS);
}