You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by co...@apache.org on 2022/01/31 08:59:57 UTC
[cxf] 01/02: CXF-8649 - Stop using Annotated.getGenericType
This is an automated email from the ASF dual-hosted git repository.
coheigea pushed a commit to branch 3.4.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git
commit ccdeb7b2bea8a70e1cdb6eb105206712308cc3fa
Author: Colm O hEigeartaigh <co...@apache.org>
AuthorDate: Mon Jan 31 08:41:06 2022 +0000
CXF-8649 - Stop using Annotated.getGenericType
(cherry picked from commit 2f777e00095391a2bb4b5f381c4e03b84c28df1e)
(cherry picked from commit ded2b0ccd0d090846525052c070ebaf4cf29a219)
---
.../src/main/java/org/apache/cxf/jaxrs/swagger/JaxRs2Extension.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/JaxRs2Extension.java b/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/JaxRs2Extension.java
index f1d6cec..a3d6403 100644
--- a/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/JaxRs2Extension.java
+++ b/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/JaxRs2Extension.java
@@ -99,7 +99,7 @@ public class JaxRs2Extension extends AbstractSwaggerExtension {
// Gather the field's details
if (field != null) {
- paramType = field.getAnnotated().getGenericType();
+ paramType = field.getAnnotated().getType();
for (final Annotation fieldAnnotation : field.annotations()) {
if (!paramAnnotations.contains(fieldAnnotation)) {