Skip to content

Commit f1cbbd2

Browse files
jukekxmsdeleuze
authored andcommitted
Remove redundant array length check
Closes gh-33655
1 parent c73e76c commit f1cbbd2

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)