Skip to content

Commit

Permalink
Replace deprecated AnyRefMap
Browse files Browse the repository at this point in the history
  • Loading branch information
Friendseeker committed Nov 5, 2024
1 parent 8d88f99 commit f846042
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ object ReflectUtilities {
else clazz :: ancestry(clazz.getSuperclass)

def fields(clazz: Class[?]): mutable.Map[String, Field] =
mutable.AnyRefMap(ancestry(clazz).flatMap(_.getDeclaredFields).map(f => (f.getName, f)): _*)
mutable.HashMap(ancestry(clazz).flatMap(_.getDeclaredFields).map(f => (f.getName, f)): _*)

/**
* Collects all `val`s of type `T` defined on value `self`.
Expand Down

0 comments on commit f846042

Please sign in to comment.