mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-05-01 21:54:24 +02:00
20 lines
627 B
Kotlin
20 lines
627 B
Kotlin
package app.revanced.patcher.annotation
|
|
|
|
import app.revanced.patcher.data.Data
|
|
import app.revanced.patcher.patch.Patch
|
|
import kotlin.reflect.KClass
|
|
|
|
/**
|
|
* Declares a [Patch] deprecated for removal.
|
|
* @param reason The reason why the patch is deprecated.
|
|
* @param replacement The replacement for the deprecated patch, if any.
|
|
*/
|
|
@Target(AnnotationTarget.CLASS)
|
|
@Retention(AnnotationRetention.RUNTIME)
|
|
@MustBeDocumented
|
|
@Repeatable
|
|
annotation class PatchDeprecated(
|
|
val reason: String,
|
|
val replacement: KClass<out Patch<Data>> = Patch::class
|
|
// Values cannot be nullable in annotations, so this will have to do.
|
|
) |