mirror of https://github.com/sbt/sbt.git
Merge pull request #213 from retronym/faster/misc
Cache the hashCode of Configuration
This commit is contained in:
commit
367764686b
|
|
@ -31,7 +31,7 @@ final class Configuration private[sbt] (
|
|||
(this.transitive == x.transitive)
|
||||
case _ => false
|
||||
}
|
||||
override def hashCode: Int = {
|
||||
override val hashCode: Int = {
|
||||
37 * (37 * (37 * (37 * (37 * (37 * (17 + id.##) + name.##) + description.##) + isPublic.##) + extendsConfigs.##) + transitive.##)
|
||||
}
|
||||
override def toString: String = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue