You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by se...@apache.org on 2017/08/29 14:19:06 UTC
cxf git commit: Making it possible to disable the license value in
Swagger2Feature
Repository: cxf
Updated Branches:
refs/heads/master 39bd1fe48 -> ca1fa2faa
Making it possible to disable the license value in Swagger2Feature
Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/ca1fa2fa
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/ca1fa2fa
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/ca1fa2fa
Branch: refs/heads/master
Commit: ca1fa2faac597908fa1f375a7b0857115f6fe3ed
Parents: 39bd1fe
Author: Sergey Beryozkin <sb...@gmail.com>
Authored: Tue Aug 29 15:18:50 2017 +0100
Committer: Sergey Beryozkin <sb...@gmail.com>
Committed: Tue Aug 29 15:18:50 2017 +0100
----------------------------------------------------------------------
.../main/java/org/apache/cxf/jaxrs/swagger/Swagger2Feature.java | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cxf/blob/ca1fa2fa/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 0eaa720..d27551b 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
@@ -290,6 +290,8 @@ public class Swagger2Feature extends AbstractSwaggerFeature {
}
if (theLicense == null) {
theLicense = DEFAULT_LICENSE_VALUE;
+ } else if (theLicense.isEmpty()) {
+ theLicense = null;
}
beanConfig.setLicense(theLicense);