Skip to content

Commit

Permalink
syntax fix after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
bishabosha committed Aug 22, 2024
1 parent ab87d07 commit e69f1bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions main/eval/src/mill/eval/EvaluatorCore.scala
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,10 @@ private[mill] trait EvaluatorCore extends GroupEvaluator {
c.getInterfaces.iterator.flatMap(resolveTransitiveParents)
}

val classToTransitiveClasses = sortedGroups
val classToTransitiveClasses: Map[Class[?], IndexedSeq[Class[?]]] = sortedGroups
.values()
.flatten
.collect { case namedTask: NamedTask[_] => namedTask.ctx.enclosingCls }
.collect { case namedTask: NamedTask[?] => namedTask.ctx.enclosingCls }
.map(cls => cls -> resolveTransitiveParents(cls).toVector)
.toMap

Expand All @@ -236,7 +236,7 @@ private[mill] trait EvaluatorCore extends GroupEvaluator {
.flatMap(_._2)
.toSet

val allTransitiveClassMethods = allTransitiveClasses
val allTransitiveClassMethods: Map[Class[?], Map[String, java.lang.reflect.Method]] = allTransitiveClasses
.map { cls =>
val cMangledName = cls.getName.replace('.', '$')
cls -> cls.getDeclaredMethods
Expand Down
2 changes: 1 addition & 1 deletion main/server/src/mill/main/server/Server.scala
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ abstract class Server[T](
serverLog("handling run")
try handleRun(sock, initialSystemProperties)
catch {
case e: Throwable => serverLog(e + "\n" + e.getStackTrace.mkString("\n"))
case e: Throwable => serverLog(e.toString + "\n" + e.getStackTrace.mkString("\n"))
} finally sock.close();
true
}
Expand Down

0 comments on commit e69f1bd

Please sign in to comment.