Repository: cxf Updated Branches: refs/heads/master 54e7c58d5 -> e90f3dd64
Fix some more eclipse warnings Project: http://git-wip-us.apache.org/repos/asf/cxf/repo Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/e90f3dd6 Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/e90f3dd6 Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/e90f3dd6 Branch: refs/heads/master Commit: e90f3dd6422fa059ebea4c92763c73c8685e185e Parents: 54e7c58 Author: Daniel Kulp <[email protected]> Authored: Fri Mar 10 16:48:56 2017 -0500 Committer: Daniel Kulp <[email protected]> Committed: Fri Mar 10 16:48:56 2017 -0500 ---------------------------------------------------------------------- .../java/org/apache/cxf/jaxrs/swagger/JaxRs2Extension.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cxf/blob/e90f3dd6/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/JaxRs2Extension.java ---------------------------------------------------------------------- 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 57437c5..bde0740 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 @@ -97,7 +97,7 @@ public class JaxRs2Extension extends AbstractSwaggerExtension { // Gather the field's details if (field != null) { - paramType = field.getGenericType(); + paramType = field.getAnnotated().getGenericType(); for (final Annotation fieldAnnotation : field.annotations()) { if (!paramAnnotations.contains(fieldAnnotation)) { @@ -109,8 +109,8 @@ public class JaxRs2Extension extends AbstractSwaggerExtension { // Gather the setter's details but only the ones we need if (setter != null) { // Do not set the param class/type from the setter if the values are already identified - if (paramType == null && setter.getGenericParameterTypes() != null) { - paramType = setter.getGenericParameterTypes()[0]; + if (paramType == null && setter.getMember().getGenericParameterTypes() != null) { + paramType = setter.getMember().getGenericParameterTypes()[0]; } for (final Annotation fieldAnnotation : setter.annotations()) {
