diff --git a/modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2/play24/Play24CallFactory.mustache b/modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2/play24/Play24CallFactory.mustache index 6e83afd045ca..5572ac476193 100644 --- a/modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2/play24/Play24CallFactory.mustache +++ b/modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2/play24/Play24CallFactory.mustache @@ -121,7 +121,7 @@ public class Play24CallFactory implements okhttp3.Call.Factory { responseCallback.onFailure(call, new IOException(throwable)); } } - + }); } @@ -178,9 +178,9 @@ public class Play24CallFactory implements okhttp3.Call.Factory { public BufferedSource source() { return new Buffer().write(r.asByteArray()); } - + }); - + for (Map.Entry> entry : r.getAllHeaders().entrySet()) { for (String value : entry.getValue()) { builder.addHeader(entry.getKey(), value); @@ -200,7 +200,7 @@ public class Play24CallFactory implements okhttp3.Call.Factory { public void cancel() { throw new UnsupportedOperationException("Not supported"); } - + @Override public PlayWSCall clone() { throw new UnsupportedOperationException("Not supported"); diff --git a/modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2/play25/Play25CallFactory.mustache b/modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2/play25/Play25CallFactory.mustache index 516f67b8a2b9..b62c78aadb86 100644 --- a/modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2/play25/Play25CallFactory.mustache +++ b/modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2/play25/Play25CallFactory.mustache @@ -146,7 +146,7 @@ public class Play25CallFactory implements okhttp3.Call.Factory { Buffer buffer = new Buffer(); request.body().writeTo(buffer); wsRequest.setBody(buffer.inputStream()); - + MediaType mediaType = request.body().contentType(); if (mediaType != null) { wsRequest.setContentType(mediaType.toString()); @@ -175,7 +175,7 @@ public class Play25CallFactory implements okhttp3.Call.Factory { public BufferedSource source() { return new Buffer().write(r.asByteArray()); } - + }); for (Map.Entry> entry : r.getAllHeaders().entrySet()) { @@ -197,7 +197,7 @@ public class Play25CallFactory implements okhttp3.Call.Factory { public void cancel() { throw new UnsupportedOperationException("Not supported"); } - + @Override public PlayWSCall clone() { throw new UnsupportedOperationException("Not supported"); diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/io/swagger/client/Play24CallFactory.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/io/swagger/client/Play24CallFactory.java index 43a53e52dd4d..ab1fa035c874 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/io/swagger/client/Play24CallFactory.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/io/swagger/client/Play24CallFactory.java @@ -121,7 +121,7 @@ public class Play24CallFactory implements okhttp3.Call.Factory { responseCallback.onFailure(call, new IOException(throwable)); } } - + }); } @@ -178,9 +178,9 @@ public class Play24CallFactory implements okhttp3.Call.Factory { public BufferedSource source() { return new Buffer().write(r.asByteArray()); } - + }); - + for (Map.Entry> entry : r.getAllHeaders().entrySet()) { for (String value : entry.getValue()) { builder.addHeader(entry.getKey(), value); @@ -200,7 +200,7 @@ public class Play24CallFactory implements okhttp3.Call.Factory { public void cancel() { throw new UnsupportedOperationException("Not supported"); } - + @Override public PlayWSCall clone() { throw new UnsupportedOperationException("Not supported"); diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/Play25CallFactory.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/Play25CallFactory.java index 48bef1a6d6de..5085288b8006 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/Play25CallFactory.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/Play25CallFactory.java @@ -146,7 +146,7 @@ public class Play25CallFactory implements okhttp3.Call.Factory { Buffer buffer = new Buffer(); request.body().writeTo(buffer); wsRequest.setBody(buffer.inputStream()); - + MediaType mediaType = request.body().contentType(); if (mediaType != null) { wsRequest.setContentType(mediaType.toString()); @@ -175,7 +175,7 @@ public class Play25CallFactory implements okhttp3.Call.Factory { public BufferedSource source() { return new Buffer().write(r.asByteArray()); } - + }); for (Map.Entry> entry : r.getAllHeaders().entrySet()) { @@ -197,7 +197,7 @@ public class Play25CallFactory implements okhttp3.Call.Factory { public void cancel() { throw new UnsupportedOperationException("Not supported"); } - + @Override public PlayWSCall clone() { throw new UnsupportedOperationException("Not supported");