cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: [CXF-7316] Fixing the ApiListingResource injection issue
Date Thu, 11 May 2017 14:49:00 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes 7d8664155 -> df56ca9fa


[CXF-7316] Fixing the ApiListingResource injection issue


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/df56ca9f
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/df56ca9f
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/df56ca9f

Branch: refs/heads/3.1.x-fixes
Commit: df56ca9fafe1496861f702ed345548150002a0a2
Parents: 7d86641
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Thu May 11 15:47:34 2017 +0100
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Thu May 11 15:48:46 2017 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/cxf/jaxrs/swagger/Swagger2Feature.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/df56ca9f/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/Swagger2Feature.java
----------------------------------------------------------------------
diff --git a/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/Swagger2Feature.java
b/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/Swagger2Feature.java
index 7fc087d..d5813b0 100644
--- a/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/Swagger2Feature.java
+++ b/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/Swagger2Feature.java
@@ -159,7 +159,7 @@ public class Swagger2Feature extends AbstractSwaggerFeature {
         List<ClassResourceInfo> cris = sfb.getClassResourceInfo();
         if (!runAsFilter) {
             for (ClassResourceInfo cri : cris) {
-                if (ApiListingResource.class == cri.getResourceClass()) {
+                if (ApiListingResource.class.isAssignableFrom(cri.getResourceClass())) {
                     InjectionUtils.injectContextProxies(cri, apiListingResource);
                 }
             }


Mime
View raw message