mirror of https://github.com/sbt/sbt.git
Avoid private[this] in test build files (#8839)
This commit is contained in:
parent
7b5481ec3c
commit
870e526a00
|
|
@ -3,8 +3,8 @@ import sbt._
|
|||
import sbt.internal.util.complete.Parser._
|
||||
|
||||
object Build {
|
||||
private[this] var string: String = ""
|
||||
private[this] val stringFile = file("string.txt")
|
||||
private var string: String = ""
|
||||
private val stringFile = file("string.txt")
|
||||
val setStringValue = inputKey[Unit]("set a global string to a value")
|
||||
val checkStringValue = inputKey[Unit]("check the value of a global")
|
||||
val taskThatFails = taskKey[Unit]("this should fail")
|
||||
|
|
|
|||
|
|
@ -62,8 +62,8 @@ object Q extends AutoPlugin {
|
|||
Nil
|
||||
|
||||
// used to ensure the build-level and global settings are only added once
|
||||
private[this] val buildCount = new AInt(0)
|
||||
private[this] val globalCount = new AInt(0)
|
||||
private val buildCount = new AInt(0)
|
||||
private val globalCount = new AInt(0)
|
||||
}
|
||||
|
||||
object R extends AutoPlugin {
|
||||
|
|
|
|||
|
|
@ -22,6 +22,6 @@ object A extends AutoPlugin {
|
|||
}
|
||||
|
||||
// used to ensure the build-level and global settings are only added once
|
||||
private[this] val buildCount = new AtomicInteger(0)
|
||||
private[this] val globalCount = new AtomicInteger(0)
|
||||
private val buildCount = new AtomicInteger(0)
|
||||
private val globalCount = new AtomicInteger(0)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue