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(
25
25
if (other !is Node ) return false
26
26
return this .id == other.id
27
27
}
28
- override fun hashCode (): Int { return id.hashCode() }
28
+ override fun hashCode (): Int {
29
+ return id.hashCode()
30
+ }
29
31
}
Original file line number Diff line number Diff line change @@ -42,8 +42,10 @@ private fun createMoshiAdapter(): JsonAdapter<List<List<Node>>> {
42
42
val moshi = Moshi .Builder ()
43
43
.add(KotlinJsonAdapterFactory ())
44
44
.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
+ )
47
49
val adapter: JsonAdapter <List <List <Node >>> = moshi.adapter(workflowList)
48
50
return adapter
49
51
}
You can’t perform that action at this time.
0 commit comments