Skip to content

Commit faa26b8

Browse files
committed
AgentInstallationType: Mark as @PublishedApi, as we want to keep the API stable
... as it has known usages in products which we do not want to break
1 parent 859f945 commit faa26b8

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Diff for: kotlinx-coroutines-core/api/kotlinx-coroutines-core.api

+4
Original file line numberDiff line numberDiff line change
@@ -911,6 +911,10 @@ public final class kotlinx/coroutines/channels/TickerMode : java/lang/Enum {
911911
public static fun values ()[Lkotlinx/coroutines/channels/TickerMode;
912912
}
913913

914+
public final class kotlinx/coroutines/debug/internal/AgentInstallationType {
915+
public static final field INSTANCE Lkotlinx/coroutines/debug/internal/AgentInstallationType;
916+
}
917+
914918
public final class kotlinx/coroutines/debug/internal/DebugCoroutineInfo {
915919
public final fun getContext ()Lkotlin/coroutines/CoroutineContext;
916920
public final fun getCreationStackTrace ()Ljava/util/List;

Diff for: kotlinx-coroutines-core/jvm/src/debug/internal/AgentInstallationType.kt

+5-3
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ package kotlinx.coroutines.debug.internal
77
* Otherwise, access to `AgentPremain.isInstalledStatically` triggers the load of its internal `ClassFileTransformer`
88
* that is not available on Android.
99
*
10-
* Usage Note: Fleet (Reflection): FleetDebugProbes
11-
* Usage Note: Android (Hard Coded, ignored for Leak Detection)
12-
* Usage Note: IntelliJ (Suppress KotlinInternalInJava): CoroutineDumpState
10+
* The entity (despite being internal) has usages in the following products
11+
* - Fleet (Reflection): FleetDebugProbes
12+
* - Android (Hard Coded, ignored for Leak Detection)
13+
* - IntelliJ (Suppress KotlinInternalInJava): CoroutineDumpState
1314
*/
15+
@PublishedApi
1416
internal object AgentInstallationType {
1517
internal var isInstalledStatically = false
1618
}

0 commit comments

Comments
 (0)