mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-14 18:05:27 +07:00
IJPL-201747 Mark ColorId as @ApiStatus.Experimental
GitOrigin-RevId: be89dfb638cec58f2b836d7d88707767d761f988
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ad4162d6fd
commit
45a4eb0f6a
@@ -16,7 +16,7 @@ private val LOG = fileLogger()
|
||||
/**
|
||||
* Converts an [Color] instance into a [ColorId] which can be used in RPC calls and stored in Rhizome.
|
||||
*/
|
||||
@ApiStatus.Internal
|
||||
@ApiStatus.Experimental
|
||||
fun Color.rpcId(): ColorId {
|
||||
val color = this
|
||||
val serializedColor = serializeToRpc(color)
|
||||
@@ -27,7 +27,7 @@ fun Color.rpcId(): ColorId {
|
||||
/**
|
||||
* Retrieves the [Color] associated with the given [ColorId].
|
||||
*/
|
||||
@ApiStatus.Internal
|
||||
@ApiStatus.Experimental
|
||||
fun ColorId.color(): Color {
|
||||
if (localColor != null) {
|
||||
return localColor
|
||||
@@ -39,7 +39,7 @@ fun ColorId.color(): Color {
|
||||
}
|
||||
}
|
||||
|
||||
@ApiStatus.Internal
|
||||
@ApiStatus.Experimental
|
||||
@Serializable
|
||||
class ColorId internal constructor(
|
||||
@Serializable @JvmField internal val serializedValue: SerializedValue? = null,
|
||||
|
||||
Reference in New Issue
Block a user