Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use ClassTag instead of deprecated Manifest #1429

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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