Remove redundant array length check
Closes gh-33655
This commit is contained in:
committed by
Sébastien Deleuze
parent
c73e76cf2e
commit
f1cbbd2aa8
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user