Skip to content

Commit fa3076f

Browse files
authored
Remove star import of the packages, which contain conflicting declarations. (#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.
1 parent d30af7c commit fa3076f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: kotlinx-coroutines-core/jvm/test/jdk8/future/FutureTest.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import java.util.concurrent.*
1010
import java.util.concurrent.atomic.*
1111
import java.util.concurrent.locks.*
1212
import java.util.function.*
13-
import kotlin.concurrent.*
13+
import kotlin.concurrent.withLock
1414
import kotlin.coroutines.*
1515
import kotlin.reflect.*
1616
import kotlin.test.*

0 commit comments

Comments
 (0)