Skip to content

Commit

Permalink
remove: Redundant array length check
Browse files Browse the repository at this point in the history
  • Loading branch information
jukekxm committed Oct 5, 2024
1 parent b0c7d15 commit a65c057
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 a65c057

Please sign in to comment.