@@ -99,7 +99,7 @@ public Response getResponseById(@Nonnull final String requestId) {
9999 final JsonObject JsonObject = jsonBodyElement .getAsJsonObject ();
100100 final String bodyAsString = JsonObject .toString ();
101101 final ResponseBody responseBody = ResponseBody
102- .create (MediaType .parse ("application/json; charset=utf-8" ), bodyAsString );
102+ .create (bodyAsString , MediaType .parse ("application/json; charset=utf-8" ));
103103 builder .body (responseBody );
104104 }
105105
@@ -212,8 +212,7 @@ private Map<String, Request> createBatchRequestsHashMap(final Response batchResp
212212 return null ;
213213 }
214214 }
215- @ Nullable
216- protected Map <String , Request > createBatchRequestsHashMap (@ Nonnull final String baseUrl , @ Nonnull final JsonObject requestJSONObject ) {
215+ private Map <String , Request > createBatchRequestsHashMap (@ Nonnull final String baseUrl , @ Nonnull final JsonObject requestJSONObject ) {
217216 if (baseUrl == null || baseUrl == "" || requestJSONObject == null ) {
218217 return null ;
219218 }
@@ -255,7 +254,7 @@ protected Map<String, Request> createBatchRequestsHashMap(@Nonnull final String
255254 final JsonObject JsonObject = jsonBodyElement .getAsJsonObject ();
256255 final String bodyAsString = JsonObject .toString ();
257256 final RequestBody requestBody = RequestBody
258- .create (MediaType .parse ("application/json; charset=utf-8" ), bodyAsString );
257+ .create (bodyAsString , MediaType .parse ("application/json; charset=utf-8" ));
259258 builder .method (jsonMethodElement .getAsString (), requestBody );
260259 } else if (jsonMethodElement != null ) {
261260 builder .method (jsonMethodElement .getAsString (), null );
0 commit comments