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:
Grzegorz Kossakowski 2013-12-04 12:49:15 +01:00
parent a9a709ccc0
commit fa220f372a
1 changed files with 7 additions and 0 deletions

View File

@ -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}