akka.util.Unused.scala Maven / Gradle / Ivy
/*
* Copyright (C) 2018-2019 Lightbend Inc.
*/
package akka.util
import com.github.ghik.silencer.silent
import akka.annotation.InternalApi
/**
* Marker for explicit or implicit parameter known to be unused, yet
* still necessary from a binary compatibility perspective
* or other reason. Useful in combination with
* `-Ywarn-unused:explicits,implicits` compiler options.
*
* Extends 'deprecated' to make sure using a parameter marked @unused
* produces a warning, and not using a parameter marked @unused does not
* produce an 'unused parameter' warning.
*
* This approach is deprecated in Scala 2.13 and scheduled to be
* removed in 2.14. Perhaps we should promote introducing an `@unused`
* to Scala? https://contributors.scala-lang.org/t/more-error-reporting-annotations/1681/7
*
* INTERNAL API
*/
@silent
@InternalApi private[akka] class unused extends deprecated("unused", "")
© 2015 - 2024 Weber Informatics LLC | Privacy Policy