feat: Deprecate Version annotation

This commit is contained in:
oSumAtrIX 2023-07-28 20:13:45 +02:00
parent 86e1bf6078
commit c9bbcf2bf2
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4
2 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,7 @@ annotation class Description(
* @param version The version of a [Patch]. * @param version The version of a [Patch].
*/ */
@Target(AnnotationTarget.CLASS) @Target(AnnotationTarget.CLASS)
@Deprecated("This annotation is deprecated and will be removed in a future release.")
annotation class Version( annotation class Version(
val version: String, val version: String,
) )

View File

@ -25,6 +25,7 @@ object PatchExtensions {
/** /**
* The version of a [Patch]. * The version of a [Patch].
*/ */
@Deprecated("This property is deprecated and will be removed in a future release.")
val Class<out Patch<Context>>.version val Class<out Patch<Context>>.version
get() = findAnnotationRecursively(Version::class)?.version get() = findAnnotationRecursively(Version::class)?.version