Skip to content

Commit

Permalink
Fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
rpiotrow committed Apr 19, 2021
1 parent b8a422f commit bf0ef50
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package breeze.stats.distributions

import com.sun.xml.internal.ws.encoding.soap.SerializationException
import org.apache.commons.math3.random.MersenneTwister
import org.scalatest.{FunSuite, Matchers}

Expand Down Expand Up @@ -35,7 +34,7 @@ class ThreadLocalRandomGeneratorTest extends FunSuite with Matchers {
out.writeObject(generator)
outputStream.toByteArray
} catch {
case ex: IOException => throw new SerializationException(ex)
case _: IOException => fail("cannot serialize")
} finally {
if (out != null) out.close()
}
Expand All @@ -46,7 +45,7 @@ class ThreadLocalRandomGeneratorTest extends FunSuite with Matchers {
try {
in.readObject().asInstanceOf[ThreadLocalRandomGenerator]
} catch {
case ex: IOException => throw new SerializationException(ex)
case _: IOException => fail("cannot deserialize")
} finally {
if (in != null) in.close()
}
Expand Down

0 comments on commit bf0ef50

Please sign in to comment.