Skip to content

Commit

Permalink
Remove redundant array length check
Browse files Browse the repository at this point in the history
Closes gh-33655
  • Loading branch information
jukekxm authored and sdeleuze committed Oct 7, 2024
1 parent c73e76c commit f1cbbd2
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,6 @@ public AotContribution(Class<?> beanClass) {
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);
}
Expand Down

0 comments on commit f1cbbd2

Please sign in to comment.