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] Minor tweak to DefaultSwagger2Serializers
Date Thu, 11 May 2017 11:27:07 GMT
Repository: cxf
Updated Branches:
  refs/heads/master eb14ce920 -> bbcbe17e5


[CXF-7316] Minor tweak to DefaultSwagger2Serializers


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

Branch: refs/heads/master
Commit: bbcbe17e5339650fd4b45401ac9c9bddaaee0e12
Parents: eb14ce9
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Thu May 11 12:26:52 2017 +0100
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Thu May 11 12:26:52 2017 +0100

----------------------------------------------------------------------
 .../apache/cxf/jaxrs/swagger/DefaultSwagger2Serializers.java   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/bbcbe17e/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/DefaultSwagger2Serializers.java
----------------------------------------------------------------------
diff --git a/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/DefaultSwagger2Serializers.java
b/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/DefaultSwagger2Serializers.java
index 5645a8c..fe5aff2 100644
--- a/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/DefaultSwagger2Serializers.java
+++ b/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/DefaultSwagger2Serializers.java
@@ -41,15 +41,15 @@ public class DefaultSwagger2Serializers extends SwaggerSerializers implements
Sw
     
     @Override
     public void writeTo(
-            Swagger data,
+            final Swagger data,
             final Class<?> type,
             final Type genericType,
             final Annotation[] annotations,
             final MediaType mediaType,
             final MultivaluedMap<String, Object> headers,
             final OutputStream out) throws IOException {
-        data = customizer.customize(data);
-        super.writeTo(data, type, genericType, annotations, mediaType, headers, out);
+        Swagger customizedData = customizer.customize(data);
+        super.writeTo(customizedData, type, genericType, annotations, mediaType, headers,
out);
     }
 
     @Override


Mime
View raw message