mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2026-06-29 14:45:06 +00:00
add meta
This commit is contained in:
17
meta/src/commonMain/kotlin/MetaContainerRootMapWarning.kt
Normal file
17
meta/src/commonMain/kotlin/MetaContainerRootMapWarning.kt
Normal file
@@ -0,0 +1,17 @@
|
||||
package dev.inmo.micro_utils.meta
|
||||
|
||||
/**
|
||||
* Marks the direct use of [MetaContainer.map] as requiring explicit opt-in.
|
||||
*
|
||||
* This annotation warns against direct manipulation of the internal map without using
|
||||
* the type-safe accessors, which could break type safety guarantees.
|
||||
*/
|
||||
@RequiresOptIn(
|
||||
"Do not use this directly without any special reason",
|
||||
RequiresOptIn.Level.WARNING
|
||||
)
|
||||
@Target(
|
||||
AnnotationTarget.FIELD,
|
||||
)
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
annotation class MetaContainerRootMapWarning
|
||||
Reference in New Issue
Block a user