Skip to content

Commit

Permalink
use ClassTag instead of deprecated Manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed Oct 5, 2024
1 parent 6425eb8 commit 1785ce0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ object ReflectUtilities {
/**
* Collects all `val`s of type `T` defined on value `self`.
* The returned Map maps the name of each `val` to its value.
* This requires an available `Manifest` for `T` and depends on scalac implementation details to determine
* This requires an available `ClassTag` for `T` and depends on scalac implementation details to determine
* what is a `val` using only Java reflection.
*/
def allVals[T](
self: AnyRef
)(implicit mt: scala.reflect.Manifest[T]): immutable.SortedMap[String, T] =
)(implicit mt: scala.reflect.ClassTag[T]): immutable.SortedMap[String, T] =
allValsC(self, mt.runtimeClass).asInstanceOf[immutable.SortedMap[String, T]]
}

Expand Down

0 comments on commit 1785ce0

Please sign in to comment.