Repository: cxf
Updated Branches:
  refs/heads/master 686fabd80 -> f5b26b191


[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/f5b26b19
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/f5b26b19
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/f5b26b19

Branch: refs/heads/master
Commit: f5b26b19179917141abc0b7834218b0100dbf6c7
Parents: 686fabd
Author: Sergey Beryozkin <[email protected]>
Authored: Thu May 11 15:47:34 2017 +0100
Committer: Sergey Beryozkin <[email protected]>
Committed: Thu May 11 15:47:34 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/f5b26b19/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 950a1b8..36dfd3d 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);
                 }
             }

Reply via email to