cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [1/4] cxf git commit: Don't use deprecated method of configuration
Date Thu, 10 Aug 2017 18:54:03 GMT
Repository: cxf
Updated Branches:
  refs/heads/master ff2a2793e -> b69bd4273


Don't use deprecated method of configuration


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

Branch: refs/heads/master
Commit: baf0980cfaed32f5b69d87c0c727cde7fadd4159
Parents: ff2a279
Author: Daniel Kulp <dkulp@apache.org>
Authored: Thu Aug 10 13:38:44 2017 -0400
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Thu Aug 10 13:38:44 2017 -0400

----------------------------------------------------------------------
 .../apache/cxf/maven_plugin/java2swagger/Java2SwaggerMojo.java    | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/baf0980c/maven-plugins/java2swagger-plugin/src/main/java/org/apache/cxf/maven_plugin/java2swagger/Java2SwaggerMojo.java
----------------------------------------------------------------------
diff --git a/maven-plugins/java2swagger-plugin/src/main/java/org/apache/cxf/maven_plugin/java2swagger/Java2SwaggerMojo.java
b/maven-plugins/java2swagger-plugin/src/main/java/org/apache/cxf/maven_plugin/java2swagger/Java2SwaggerMojo.java
index a585366..6972907 100644
--- a/maven-plugins/java2swagger-plugin/src/main/java/org/apache/cxf/maven_plugin/java2swagger/Java2SwaggerMojo.java
+++ b/maven-plugins/java2swagger-plugin/src/main/java/org/apache/cxf/maven_plugin/java2swagger/Java2SwaggerMojo.java
@@ -34,7 +34,6 @@ import com.fasterxml.jackson.annotation.JsonInclude;
 import com.fasterxml.jackson.core.util.DefaultPrettyPrinter;
 import com.fasterxml.jackson.databind.ObjectMapper;
 import com.fasterxml.jackson.databind.ObjectWriter;
-import com.fasterxml.jackson.databind.SerializationFeature;
 
 import org.apache.cxf.helpers.FileUtils;
 import org.apache.maven.plugin.AbstractMojo;
@@ -286,8 +285,8 @@ public class Java2SwaggerMojo extends AbstractMojo {
 
     private void configureSwagger() {
         swagger = new Swagger();
-        mapper.configure(SerializationFeature.WRITE_EMPTY_JSON_ARRAYS, false);
         mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
+        mapper.setSerializationInclusion(JsonInclude.Include.NON_EMPTY);
         Info info = new Info();
         Contact swaggerContact = new Contact();
         License swaggerLicense = new License();


Mime
View raw message