mirror of
https://github.com/spring-projects/spring-framework.git
synced 2024-10-23 07:05:25 +08:00
Remove redundant array length check
Closes gh-33655
This commit is contained in:
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user