From f45dbe7e3722f0c6a814c8afd8481690ac5f1d2c Mon Sep 17 00:00:00 2001 From: Guillaume Martres Date: Thu, 16 Mar 2017 21:17:50 +0100 Subject: doc-tool/test: Workaround #2112 --- doc-tool/test/JavaConverterTest.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'doc-tool') diff --git a/doc-tool/test/JavaConverterTest.scala b/doc-tool/test/JavaConverterTest.scala index 79730215c..f9046a891 100644 --- a/doc-tool/test/JavaConverterTest.scala +++ b/doc-tool/test/JavaConverterTest.scala @@ -155,7 +155,8 @@ class JavaConverterTest { } def assertEach[E, C[E] <: Seq[E]](expected: C[E], serialized: Any)(pairwiseAssertion: (E, Any) => Unit): Unit = { - val actual = serialized.asInstanceOf[JList[_]].asScala.toList + val s = serialized.asInstanceOf[JList[_]] + val actual = s.asScala.toList assertEquals(expected.length, actual.length) for ((exp, act) <- expected zip actual) { pairwiseAssertion(exp, act) -- cgit v1.2.3