-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
introduced an optional "reason" parameter for the "PendingRemoval" an…
…notation
- Loading branch information
1 parent
a5cf0e6
commit b665344
Showing
1 changed file
with
6 additions
and
5 deletions.
There are no files selected for viewing
11 changes: 6 additions & 5 deletions
11
evanescent/kotlin/annotations/ComponentDevelopmentAnnotations.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |