From 88444f2b46956b66ae294cd82bab035e8c4fb558 Mon Sep 17 00:00:00 2001 From: Grzegorz Kossakowski Date: Thu, 28 Nov 2013 13:49:12 +0100 Subject: [PATCH] Fix access modifiers for newly introduced members in Relations. We introduced some new members (related to name hashing) with an intent to not expose them as public API. However, I missed some modifiers and some members (like `memberRef` and `inheritance`) are public. This commit fixes access modifiers to agree with the intent. --- compile/inc/src/main/scala/sbt/inc/Relations.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compile/inc/src/main/scala/sbt/inc/Relations.scala b/compile/inc/src/main/scala/sbt/inc/Relations.scala index 516ddcef1..b41804ec2 100644 --- a/compile/inc/src/main/scala/sbt/inc/Relations.scala +++ b/compile/inc/src/main/scala/sbt/inc/Relations.scala @@ -105,7 +105,7 @@ trait Relations * This relation properly accounts for that so the invariant that `memberRef` is a superset * of `inheritance` is preserved. */ - def memberRef: SourceDependencies + private[inc] def memberRef: SourceDependencies /** * The source dependency relation between source files introduced by inheritance. @@ -135,7 +135,7 @@ trait Relations * resolved transitively. You should not rely on this behavior, though. * */ - def inheritance: SourceDependencies + private[inc] def inheritance: SourceDependencies /** The dependency relations between sources. These include both direct and inherited dependencies.*/ def direct: Source @@ -219,7 +219,7 @@ object Relations def emptySource: Source = es private[inc] lazy val emptySourceDependencies: SourceDependencies = new SourceDependencies(e, estr) def empty: Relations = empty(nameHashing = false) - def empty(nameHashing: Boolean): Relations = + private[inc] def empty(nameHashing: Boolean): Relations = if (nameHashing) new MRelationsNameHashing(e, e, emptySourceDependencies, emptySourceDependencies, estr) else