Skip to content

Commit a65c057

Browse files
committed
remove: Redundant array length check
1 parent b0c7d15 commit a65c057

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

spring-tx/src/main/java/org/springframework/transaction/annotation/TransactionBeanRegistrationAotProcessor.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,6 @@ public AotContribution(Class<?> beanClass) {
8383
public void applyTo(GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode) {
8484
RuntimeHints runtimeHints = generationContext.getRuntimeHints();
8585
Class<?>[] proxyInterfaces = ClassUtils.getAllInterfacesForClass(this.beanClass);
86-
if (proxyInterfaces.length == 0) {
87-
return;
88-
}
8986
for (Class<?> proxyInterface : proxyInterfaces) {
9087
runtimeHints.reflection().registerType(proxyInterface, MemberCategory.INVOKE_DECLARED_METHODS);
9188
}

0 commit comments

Comments
 (0)