Merge pull request #213 from retronym/faster/misc

Cache the hashCode of Configuration
This commit is contained in:
eugene yokota 2018-02-28 03:44:15 -05:00 committed by GitHub
commit 367764686b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 = {