You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "DomGarguilo (via GitHub)" <gi...@apache.org> on 2023/06/22 18:24:32 UTC
[GitHub] [accumulo] DomGarguilo commented on a diff in pull request #3516: Create Gson singleton to use in place of new instances
DomGarguilo commented on code in PR #3516:
URL: https://github.com/apache/accumulo/pull/3516#discussion_r1238888211
##########
core/src/main/java/org/apache/accumulo/core/lock/ServiceLockData.java:
##########
@@ -29,13 +29,14 @@
import java.util.UUID;
import org.apache.accumulo.core.util.AddressUtil;
+import org.apache.accumulo.core.util.GsonSingleton;
import com.google.common.net.HostAndPort;
import com.google.gson.Gson;
public class ServiceLockData implements Comparable<ServiceLockData> {
- private static final Gson gson = new Gson();
+ private static final Gson gson = GsonSingleton.getInstance();
Review Comment:
Yea wasn't sure what to do in this case. Opted to make a minimal code change and see if others had suggestions. I'll make this change.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org