Skip to content

Commit 608dccd

Browse files
authored
Preparation commit for KT-70562 (#4219)
The SubclassOptInRequired annotation will accept multiple markers in arguments. This fix is required to maintain source compatibility.
1 parent 9fd5201 commit 608dccd

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

kotlinx-coroutines-core/common/src/CompletableDeferred.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import kotlinx.coroutines.selects.*
1717
* be safely invoked from concurrent coroutines without external synchronization.
1818
*/
1919
@OptIn(ExperimentalSubclassOptIn::class)
20-
@SubclassOptInRequired(markerClass = InternalForInheritanceCoroutinesApi::class)
20+
@SubclassOptInRequired(InternalForInheritanceCoroutinesApi::class)
2121
public interface CompletableDeferred<T> : Deferred<T> {
2222
/**
2323
* Completes this deferred value with a given [value]. The result is `true` if this deferred was

kotlinx-coroutines-core/common/src/CompletableJob.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ package kotlinx.coroutines
1111
* as new methods might be added to this interface in the future, but is stable for use.
1212
*/
1313
@OptIn(ExperimentalSubclassOptIn::class)
14-
@SubclassOptInRequired(markerClass = InternalForInheritanceCoroutinesApi::class)
14+
@SubclassOptInRequired(InternalForInheritanceCoroutinesApi::class)
1515
public interface CompletableJob : Job {
1616
/**
1717
* Completes this job. The result is `true` if this job was completed as a result of this invocation and

kotlinx-coroutines-core/common/src/Deferred.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import kotlinx.coroutines.selects.*
2828
* be safely invoked from concurrent coroutines without external synchronization.
2929
*/
3030
@OptIn(ExperimentalSubclassOptIn::class)
31-
@SubclassOptInRequired(markerClass = InternalForInheritanceCoroutinesApi::class)
31+
@SubclassOptInRequired(InternalForInheritanceCoroutinesApi::class)
3232
public interface Deferred<out T> : Job {
3333

3434
/**

kotlinx-coroutines-core/common/src/Job.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ import kotlin.jvm.*
101101
* be safely invoked from concurrent coroutines without external synchronization.
102102
*/
103103
@OptIn(ExperimentalSubclassOptIn::class)
104-
@SubclassOptInRequired(markerClass = InternalForInheritanceCoroutinesApi::class)
104+
@SubclassOptInRequired(InternalForInheritanceCoroutinesApi::class)
105105
public interface Job : CoroutineContext.Element {
106106
/**
107107
* Key for [Job] instance in the coroutine context.

0 commit comments

Comments
 (0)