Merge pull request #18750 from dreis2211

* pr/18750:
  Fix JsonParser deprecation

Closes gh-18750
pull/18752/head
Stephane Nicoll 5 years ago
commit 7de861b224

@ -132,7 +132,7 @@ class ElasticsearchJestHealthIndicatorTests {
json = "{\n \"error\": \"Server Error\",\n \"status\": \"" + status + "\"\n}";
}
searchResult.setJsonString(json);
searchResult.setJsonObject(new JsonParser().parse(json).getAsJsonObject());
searchResult.setJsonObject(JsonParser.parseString(json).getAsJsonObject());
searchResult.setResponseCode(responseCode);
searchResult.setSucceeded(succeeded);
return searchResult;

Loading…
Cancel
Save