mirror of
https://github.com/sbt/sbt.git
synced 2026-09-03 16:39:24 +02:00
Add overloaded constructor to HashAPI for backwards compatibility.
Add a variant of constructor to `HashAPI` that is binary and source backwards compatible with sbt 0.13.0.
This commit is contained in:
@@ -38,6 +38,13 @@ object HashAPI
|
||||
*/
|
||||
final class HashAPI(includePrivate: Boolean, includeParamNames: Boolean, includeDefinitions: Boolean)
|
||||
{
|
||||
// this constructor variant is for source and binary backwards compatibility with sbt 0.13.0
|
||||
def this(includePrivate: Boolean, includeParamNames: Boolean) {
|
||||
// in the old logic we used to always include definitions hence
|
||||
// includeDefinitions=true
|
||||
this(includePrivate, includeParamNames, includeDefinitions=true)
|
||||
}
|
||||
|
||||
import scala.collection.mutable
|
||||
import MurmurHash.{extendHash, finalizeHash, nextMagicA, nextMagicB, startHash, startMagicA, startMagicB, stringHash, symmetricHash}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user