Skip to content

Commit

Permalink
feat: Deprecate Version annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Jul 29, 2023
1 parent 5419a10 commit 0b2eac1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ annotation class Description(
* @param version The version of a [Patch].
*/
@Target(AnnotationTarget.CLASS)
@Deprecated("This annotation is deprecated and will be removed in the future.")
annotation class Version(
val version: String,
)
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ object PatchExtensions {
/**
* The version of a [Patch].
*/
@Deprecated("This property is deprecated and will be removed in the future.")
val PatchClass.version
get() = findAnnotationRecursively(Version::class)?.version

Expand Down

0 comments on commit 0b2eac1

Please sign in to comment.