Skip to content

Commit f45dbe7

Browse files
smarterfelixmulder
authored andcommitted
doc-tool/test: Workaround #2112
1 parent b2af166 commit f45dbe7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc-tool/test/JavaConverterTest.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ class JavaConverterTest {
155155
}
156156

157157
def assertEach[E, C[E] <: Seq[E]](expected: C[E], serialized: Any)(pairwiseAssertion: (E, Any) => Unit): Unit = {
158-
val actual = serialized.asInstanceOf[JList[_]].asScala.toList
158+
val s = serialized.asInstanceOf[JList[_]]
159+
val actual = s.asScala.toList
159160
assertEquals(expected.length, actual.length)
160161
for ((exp, act) <- expected zip actual) {
161162
pairwiseAssertion(exp, act)

0 commit comments

Comments
 (0)