Skip to content

Commit

Permalink
introduced an optional "reason" parameter for the "PendingRemoval" an…
Browse files Browse the repository at this point in the history
…notation
  • Loading branch information
SpoilerRules committed Jan 27, 2024
1 parent a5cf0e6 commit b665344
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions evanescent/kotlin/annotations/ComponentDevelopmentAnnotations.kt
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
package annotations

import kotlin.annotation.AnnotationRetention.BINARY
import kotlin.annotation.AnnotationTarget.*
import kotlin.annotation.AnnotationRetention.SOURCE

/**
* Annotation class for PendingRemoval.
* Use this annotation to mark elements that are planned to be removed in future versions.
* @property reason Optional reason for pending removal.
*/
@Target(CLASS, FUNCTION, PROPERTY)
@Retention(SOURCE)
annotation class PendingRemoval
@Retention(BINARY)
annotation class PendingRemoval(val reason: String = "")

/**
* Annotation class for QuicklyFixed.
* Use this annotation to mark elements that were quickly fixed after a bug was discovered.
*/
@Target(CLASS, FUNCTION, PROPERTY)
@Retention(SOURCE)
annotation class QuicklyFixed
@Retention(BINARY)
annotation class QuicklyFixed

0 comments on commit b665344

Please sign in to comment.