Skip to content

Commit

Permalink
introduce compat @unused annotation [fixup]
Browse files Browse the repository at this point in the history
  • Loading branch information
satorg committed Oct 3, 2022
1 parent b317a9d commit 26bcc45
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions kernel/src/main/scala-2.12/cats/kernel/compat/unused.scala
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@

package cats.kernel.compat

import scala.annotation.nowarn

/** Simulates the behaviour of `@unused` annotation originally implemented
* in Scala 2.13 and above.
*
* @note copied from
* [[https://github.com/scala/scala-collection-compat/blob/e35e330fca28c78c39fa2d4812fa33ce892f19e3/compat/src/main/scala-2.11_2.12/scala/annotation/unused.scala scala-collection-compat]]
* source code.
*/
final private[cats] class unused extends deprecated("unused", "unused")
@nowarn("msg=subclassing ClassfileAnnotation does not\nmake your annotation visible at runtime.")
final private[cats] class unused extends nowarn("cat=unused")

0 comments on commit 26bcc45

Please sign in to comment.