[ https://issues.apache.org/jira/browse/TINKERPOP-1274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15431110#comment-15431110 ]
ASF GitHub Bot commented on TINKERPOP-1274: ------------------------------------------- Github user newkek commented on a diff in the pull request: https://github.com/apache/tinkerpop/pull/386#discussion_r75709109 --- Diff: gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/util/MutableMetrics.java --- @@ -42,6 +42,18 @@ public MutableMetrics(final String id, final String name) { this.name = name; } + // create a MutableMetrics from an Immutable one. + // needed that for tests, don't know if it is worth keeping it public. + // TODO: see if it's ok to add this + public MutableMetrics(Metrics other) { --- End diff -- Same here I added a convenience constructor that takes any kind of Metrics and returns a `MutableMetrics`. It was convenient for tests, as I wanted to serialize Metrics that I am sure have nested Metrics, and make sure the ser/de works for those. > GraphSON Version 2.0 > -------------------- > > Key: TINKERPOP-1274 > URL: https://issues.apache.org/jira/browse/TINKERPOP-1274 > Project: TinkerPop > Issue Type: Improvement > Components: io > Affects Versions: 3.1.2-incubating > Reporter: stephen mallette > Priority: Minor > Fix For: 3.2.2 > > > Develop a revised version of GraphSON that provides better support for > non-JVM languages that consume it. -- This message was sent by Atlassian JIRA (v6.3.4#6332)