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-7484] Minor update
Date Wed, 23 Aug 2017 13:00:04 GMT
Repository: cxf
Updated Branches:
  refs/heads/master b084da375 -> 6edd2c9b2


[CXF-7484] Minor update


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

Branch: refs/heads/master
Commit: 6edd2c9b23d1289586e506ea41fa38a03a9e88da
Parents: b084da3
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Wed Aug 23 13:59:47 2017 +0100
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Wed Aug 23 13:59:47 2017 +0100

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


http://git-wip-us.apache.org/repos/asf/cxf/blob/6edd2c9b/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 280d94b..0eaa720 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
@@ -208,8 +208,7 @@ public class Swagger2Feature extends AbstractSwaggerFeature {
             providers.add(new ServletConfigProvider());
         }
 
-        ((ServerProviderFactory) server.getEndpoint().get(
-                ServerProviderFactory.class.getName())).setUserProviders(providers);
+        factory.setUserProviders(providers);
     }
 
     protected void initBeanConfig(Bus bus, BeanConfig beanConfig) {
@@ -330,6 +329,7 @@ public class Swagger2Feature extends AbstractSwaggerFeature {
         }
         beanConfig.setFilterClass(theFilterClass);
         
+        // Without this call Swagger generator loses the JSON 'info'
         beanConfig.setScan(false);
         
         // base path is calculated dynamically


Mime
View raw message