Skip to content

Commit

Permalink
[update][plugin][esreader] Remove deprecated JsonParser#JsonParser me…
Browse files Browse the repository at this point in the history
…thod
  • Loading branch information
wgzhao committed Dec 6, 2023
1 parent 4f1ca9c commit 5cfae66
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,7 @@ public boolean alias(String indexName, String aliasName, boolean needClean)
log.info(rst.getJsonString());
List<AliasMapping> list = new ArrayList<>();
if (rst.isSucceeded()) {
JsonParser jp = new JsonParser();
JsonObject jo = (JsonObject) jp.parse(rst.getJsonString());
JsonObject jo = (JsonObject) JsonParser.parseString(rst.getJsonString());
for (Map.Entry<String, JsonElement> entry : jo.entrySet()) {
String index = entry.getKey();
if (indexName.equals(index)) {
Expand Down

0 comments on commit 5cfae66

Please sign in to comment.