diff --git a/scala-package/core/src/main/scala/org/apache/mxnet/util/SomeConversion.scala b/scala-package/core/src/main/scala/org/apache/mxnet/util/OptionConversion.scala similarity index 97% rename from scala-package/core/src/main/scala/org/apache/mxnet/util/SomeConversion.scala rename to scala-package/core/src/main/scala/org/apache/mxnet/util/OptionConversion.scala index 1d12f7c5e08e..2cf453ac3d18 100644 --- a/scala-package/core/src/main/scala/org/apache/mxnet/util/SomeConversion.scala +++ b/scala-package/core/src/main/scala/org/apache/mxnet/util/OptionConversion.scala @@ -17,6 +17,6 @@ package org.apache.mxnet.util -object SomeConversion { +object OptionConversion { implicit def someWrapper[A](noSome : A) : Option[A] = Option(noSome) } diff --git a/scala-package/core/src/test/scala/org/apache/mxnet/NDArraySuite.scala b/scala-package/core/src/test/scala/org/apache/mxnet/NDArraySuite.scala index 51d65f91e26b..2db9ff11b374 100644 --- a/scala-package/core/src/test/scala/org/apache/mxnet/NDArraySuite.scala +++ b/scala-package/core/src/test/scala/org/apache/mxnet/NDArraySuite.scala @@ -600,7 +600,7 @@ class NDArraySuite extends FunSuite with BeforeAndAfterAll with Matchers { val arr4 = NDArray.ones(Shape(1), dtype = DType.Float64) val arr5 = NDArray.api.norm(arr3, ord = Some(1), out = Some(arr4)) // With SomeConversion - import org.apache.mxnet.util.SomeConversion._ + import org.apache.mxnet.util.OptionConversion._ val arr = NDArray.ones(Shape(1, 2), dtype = DType.Float64) val arr2 = NDArray.ones(Shape(1), dtype = DType.Float64) NDArray.api.norm(arr, ord = 1, out = arr2)