mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +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.
|
* 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 {
|
fun Color.rpcId(): ColorId {
|
||||||
val color = this
|
val color = this
|
||||||
val serializedColor = serializeToRpc(color)
|
val serializedColor = serializeToRpc(color)
|
||||||
@@ -27,7 +27,7 @@ fun Color.rpcId(): ColorId {
|
|||||||
/**
|
/**
|
||||||
* Retrieves the [Color] associated with the given [ColorId].
|
* Retrieves the [Color] associated with the given [ColorId].
|
||||||
*/
|
*/
|
||||||
@ApiStatus.Internal
|
@ApiStatus.Experimental
|
||||||
fun ColorId.color(): Color {
|
fun ColorId.color(): Color {
|
||||||
if (localColor != null) {
|
if (localColor != null) {
|
||||||
return localColor
|
return localColor
|
||||||
@@ -39,7 +39,7 @@ fun ColorId.color(): Color {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiStatus.Internal
|
@ApiStatus.Experimental
|
||||||
@Serializable
|
@Serializable
|
||||||
class ColorId internal constructor(
|
class ColorId internal constructor(
|
||||||
@Serializable @JvmField internal val serializedValue: SerializedValue? = null,
|
@Serializable @JvmField internal val serializedValue: SerializedValue? = null,
|
||||||
|
|||||||
Reference in New Issue
Block a user