Skip to content

Commit dda0ab9

Browse files
committed
Correct documentation in Relations.scala
1 parent 0a6db8f commit dda0ab9

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

internal/zinc-core/src/main/scala/sbt/internal/inc/Relations.scala

+3-3
Original file line numberDiff line numberDiff line change
@@ -184,15 +184,15 @@ trait Relations {
184184
private[inc] def externalDependencies: ExternalDependencies
185185

186186
/**
187-
* The class dependency relation between classes introduced by member reference excluding local references
187+
* The class dependency relation between classes introduced
188+
* by member reference excluding excluding same-source references.
188189
*
189190
* NOTE: All inheritance dependencies are included in this relation because in order to
190191
* inherit from a member you have to refer to it. If you check documentation of `inheritance`
191192
* you'll see that there's small oddity related to traits being the first parent of a
192193
* class/trait that results in additional parents being introduced due to normalization.
193194
*
194-
* Because `inheritance` includes local relations, `memberRef` is not a superset of `inheritance`
195-
* of `inheritance` is preserved.
195+
* Because `inheritance` includes same-source references, `memberRef` is not a superset of `inheritance`
196196
*/
197197
private[inc] def memberRef: ClassDependencies
198198

internal/zinc-scripted/src/test/scala/sbt/internal/inc/IncHandler.scala

+4-1
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,10 @@ case class ProjectStructure(
810810
import scala.collection.JavaConverters._
811811
val map = new java.util.HashMap[String, String]
812812
properties.asScala foreach { case (k: String, v: String) => map.put(k, v) }
813-
val externalHooks = new DefaultExternalHooks(Optional.empty[ExternalHooks.Lookup], Optional.empty[XClassFileManager])
813+
val externalHooks = new DefaultExternalHooks(
814+
Optional.empty[ExternalHooks.Lookup],
815+
Optional.empty[XClassFileManager]
816+
)
814817
.withInvalidationProfiler(profiler)
815818
val base = IncOptions
816819
.of()

0 commit comments

Comments
 (0)