Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
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 | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
annotation class PatchDeprecated( | ||
This comment has been minimized.
Sorry, something went wrong.
oSumAtrIX
Member
|
||
val reason: String, | ||
val replacement: KClass<out Patch<Data>> = Patch::class | ||
// Values cannot be nullable in annotations, so this will have to do. | ||
) |
What is the reason for this annotation to be repeatable?