commit | 172760820e2b99c13e5eeacd7df2a0326e9a1345 | [log] [tgz] |
---|---|---|
author | Phan Nguyen Tuan Khang <nguyen.tuan.khang.phan.ext@ericsson.com> | Thu May 05 13:05:39 2022 -0400 |
committer | Nguyen Tuan Khang Phan <phan.khang5@gmail.com> | Thu May 05 20:11:37 2022 +0000 |
tree | 412ed5aa7a6a29a6d3f00e8b5c62f61220806c92 | |
parent | 2c7ef6be0914cfc94d2ea1e67671da74b9a63255 [diff] |
Use deprecated JsonParser#parse since gson is not upgraded Change-Id: I03020921d9d31326a4fa0af09ff0a56dfc1595d7
diff --git a/src/main/java/com/googlesource/gerrit/plugins/ratelimiter/RateLimiterProcessing.java b/src/main/java/com/googlesource/gerrit/plugins/ratelimiter/RateLimiterProcessing.java index 8f23613..8e11de9 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/ratelimiter/RateLimiterProcessing.java +++ b/src/main/java/com/googlesource/gerrit/plugins/ratelimiter/RateLimiterProcessing.java
@@ -67,7 +67,7 @@ .sorted(Map.Entry.comparingByValue()) .map(this::getJsonObjectString) .forEach(permitList::add); - return gson.toJson(JsonParser.parseString(permitList.toString())); + return gson.toJson(new JsonParser().parse(permitList.toString())); } private String getJsonObjectString(Map.Entry<String, RateLimiter> entry) {