Remove all warnings from taskProj

This commit is contained in:
Dale Wijnand 2017-12-04 16:04:20 +00:00
parent 4a5ff4fc0d
commit f274aaa811
No known key found for this signature in database
GPG Key ID: 4F256E3D151DF5EF
1 changed files with 5 additions and 2 deletions

View File

@ -360,8 +360,11 @@ private[sbt] final class Execute[A[_] <: AnyRef](
// cyclic reference checking
def snapshotCycleCheck(): Unit =
for ((called: A[c], callers) <- callers.toSeq; caller <- callers)
cycleCheck(caller.asInstanceOf[A[c]], called)
callers.toSeq foreach {
case (called: A[c], callers) =>
for (caller <- callers) cycleCheck(caller.asInstanceOf[A[c]], called)
case _ => ()
}
def cycleCheck[T](node: A[T], target: A[T]): Unit = {
if (node eq target) cyclic(node, target, "Cannot call self")