Skip to content

Commit

Permalink
Merge pull request sbt#1488 from Friendseeker/replace-anyrefmap
Browse files Browse the repository at this point in the history
[1.x] Replace deprecated `mutable.AnyRefMap`
  • Loading branch information
eed3si9n authored Nov 5, 2024
2 parents 8d88f99 + f846042 commit 0de8e03
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 0de8e03

Please sign in to comment.