Skip to content

Commit

Permalink
Fix access modifiers for newly introduced members in Relations.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gkossakowski authored and eed3si9n committed Mar 21, 2014
1 parent 0f5c16f commit 1d1414d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compile/inc/src/main/scala/sbt/inc/Relations.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1d1414d

Please sign in to comment.