This is an automated email from the ASF dual-hosted git repository.
ppalaga pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/main by this push:
new cce9525e2f Fix #7280 to check defualt bean only with @Default qualifier
cce9525e2f is described below
commit cce9525e2fb25f3e72a175f85aaf55f714c8346b
Author: Zheng Feng <[email protected]>
AuthorDate: Wed Apr 23 14:26:40 2025 +0800
Fix #7280 to check defualt bean only with @Default qualifier
---
.../main/java/org/apache/camel/quarkus/core/RuntimeBeanRepository.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/extensions-core/core/runtime/src/main/java/org/apache/camel/quarkus/core/RuntimeBeanRepository.java
b/extensions-core/core/runtime/src/main/java/org/apache/camel/quarkus/core/RuntimeBeanRepository.java
index 2b860c15b9..6382cd7b0c 100644
---
a/extensions-core/core/runtime/src/main/java/org/apache/camel/quarkus/core/RuntimeBeanRepository.java
+++
b/extensions-core/core/runtime/src/main/java/org/apache/camel/quarkus/core/RuntimeBeanRepository.java
@@ -216,6 +216,6 @@ public final class RuntimeBeanRepository implements
BeanRepository {
}
private boolean isDefaultBean(InjectableBean<?> bean) {
- return bean.isDefaultBean() ||
bean.getQualifiers().stream().anyMatch(q ->
q.annotationType().equals(Default.class));
+ return bean.getQualifiers().stream().anyMatch(q ->
q.annotationType().equals(Default.class));
}
}