From 1785ce08915f592d51f6468ed7ecb1d25479c69e Mon Sep 17 00:00:00 2001 From: xuwei-k <6b656e6a69@gmail.com> Date: Sat, 5 Oct 2024 10:14:53 +0900 Subject: [PATCH] use ClassTag instead of deprecated Manifest --- .../src/main/scala/sbt/internal/inc/ReflectUtilities.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/zinc-classpath/src/main/scala/sbt/internal/inc/ReflectUtilities.scala b/internal/zinc-classpath/src/main/scala/sbt/internal/inc/ReflectUtilities.scala index 61f376182..ca2475a22 100644 --- a/internal/zinc-classpath/src/main/scala/sbt/internal/inc/ReflectUtilities.scala +++ b/internal/zinc-classpath/src/main/scala/sbt/internal/inc/ReflectUtilities.scala @@ -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]] }