Skip to content

Commit

Permalink
Remove star import of the packages, which contain conflicting declara…
Browse files Browse the repository at this point in the history
…tions. (#4258)

Star imports of `java.util.concurrent.atomic.*` and `kotlin.concurrent.*` will lead to the compilation error: once Atomic classes are introduced in `kotlin.concurrent` package, they will conflict with Java atomic classes, which have the same names.
  • Loading branch information
mvicsokolova authored and tbogdanova committed Oct 28, 2024
1 parent 100b8b3 commit fb7e733
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kotlinx-coroutines-core/jvm/test/jdk8/future/FutureTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import java.util.concurrent.*
import java.util.concurrent.atomic.*
import java.util.concurrent.locks.*
import java.util.function.*
import kotlin.concurrent.*
import kotlin.concurrent.withLock
import kotlin.coroutines.*
import kotlin.reflect.*
import kotlin.test.*
Expand Down

0 comments on commit fb7e733

Please sign in to comment.