From 70899e5cad1dcc94b7d3640c8508a5242b161fd8 Mon Sep 17 00:00:00 2001 From: Ethan Atkins Date: Sun, 2 Jun 2019 16:09:51 -0700 Subject: [PATCH] Switch private[sbt] status of Reload objects The Reload exception that I added in the sbt package really wasn't intended to be public. It's only meant to be used by checkMetaBuildSources, which the users shouldn't override. I put it in the top package though because I wanted it to be next to FullReload. I also am not sure why the Reload object in Watch was private[sbt], but while writing documentation, I realized that users couldn't access it. --- main-command/src/main/scala/sbt/MainControl.scala | 2 +- main/src/main/scala/sbt/nio/Watch.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main-command/src/main/scala/sbt/MainControl.scala b/main-command/src/main/scala/sbt/MainControl.scala index 4995be5bf..4a959fd19 100644 --- a/main-command/src/main/scala/sbt/MainControl.scala +++ b/main-command/src/main/scala/sbt/MainControl.scala @@ -21,7 +21,7 @@ final case class Reboot( def arguments = argsList.toArray } -case object Reload extends Exception(null, null, false, false) +private[sbt] case object Reload extends Exception(null, null, false, false) final case class ApplicationID( groupID: String, diff --git a/main/src/main/scala/sbt/nio/Watch.scala b/main/src/main/scala/sbt/nio/Watch.scala index 9a073f45b..5fd1f11a6 100644 --- a/main/src/main/scala/sbt/nio/Watch.scala +++ b/main/src/main/scala/sbt/nio/Watch.scala @@ -246,7 +246,7 @@ object Watch { * Action that indicates that the watch should pause while the build is reloaded. This is used to * automatically reload the project when the build files (e.g. build.sbt) are changed. */ - private[sbt] case object Reload extends CancelWatch + case object Reload extends CancelWatch /** * Action that indicates that we should exit and run the provided command.