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:42:57 UTC

[cxf] branch master updated: CXF-8649 - Stop using Annotated.getGenericType

This is an automated email from the ASF dual-hosted git repository.

coheigea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/master by this push:
     new 2f777e0  CXF-8649 - Stop using Annotated.getGenericType
2f777e0 is described below

commit 2f777e00095391a2bb4b5f381c4e03b84c28df1e
Author: Colm O hEigeartaigh <co...@apache.org>
AuthorDate: Mon Jan 31 08:41:06 2022 +0000

    CXF-8649 - Stop using Annotated.getGenericType
---
 .../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)) {