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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]