[
https://issues.apache.org/jira/browse/CXF-6986?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15595084#comment-15595084
]
ASF GitHub Bot commented on CXF-6986:
-------------------------------------
Github user reta commented on a diff in the pull request:
https://github.com/apache/cxf/pull/182#discussion_r84469141
--- Diff: integration/cdi/src/main/java/org/apache/cxf/cdi/CdiBusBean.java
---
@@ -61,44 +53,14 @@ public String getName() {
return CXF;
}
- @SuppressWarnings("serial")
- @Override
- public Set< Annotation > getQualifiers() {
- Set<Annotation> qualifiers = new HashSet<Annotation>();
- qualifiers.add(new AnnotationLiteral< Default >() { });
- qualifiers.add(new AnnotationLiteral< Any >() { });
- return qualifiers;
- }
-
@Override
public Set<Type> getTypes() {
- final Set< Type > types = new HashSet< Type >();
+ final Set< Type > types = super.getTypes();
--- End diff --
`final Set< Type > types = new HashSet<>(super.getTypes());`, it is just
safer
> Don't require an application class if using CDI
> -----------------------------------------------
>
> Key: CXF-6986
> URL: https://issues.apache.org/jira/browse/CXF-6986
> Project: CXF
> Issue Type: Improvement
> Affects Versions: 3.1.6
> Reporter: John D. Ament
>
> The current CXF-CDI integration assumes there will be an application class.
> It would be great if CXF did not require an application class, to simplify
> developer workload.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)