File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
workflow-trace-viewer/src/jvmMain/kotlin/com/squareup/workflow1/traceviewer Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -25,5 +25,7 @@ public class Node(
2525 if (other !is Node ) return false
2626 return this .id == other.id
2727 }
28- override fun hashCode (): Int { return id.hashCode() }
28+ override fun hashCode (): Int {
29+ return id.hashCode()
30+ }
2931}
Original file line number Diff line number Diff line change @@ -42,8 +42,10 @@ private fun createMoshiAdapter(): JsonAdapter<List<List<Node>>> {
4242 val moshi = Moshi .Builder ()
4343 .add(KotlinJsonAdapterFactory ())
4444 .build()
45- val workflowList = Types .newParameterizedType(List ::class .java,
46- Types .newParameterizedType(List ::class .java, Node ::class .java))
45+ val workflowList = Types .newParameterizedType(
46+ List ::class .java,
47+ Types .newParameterizedType(List ::class .java, Node ::class .java)
48+ )
4749 val adapter: JsonAdapter <List <List <Node >>> = moshi.adapter(workflowList)
4850 return adapter
4951}
You can’t perform that action at this time.
0 commit comments