Migrate UseExperimental->OptIn in project sources
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
@file:UseExperimental(ExperimentalTime::class)
|
||||
@file:OptIn(ExperimentalTime::class)
|
||||
package test.time
|
||||
|
||||
import test.numbers.assertAlmostEquals
|
||||
@@ -398,4 +398,4 @@ class DurationTest {
|
||||
test(Duration.INFINITE, "Infinity")
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
@file:UseExperimental(ExperimentalTime::class)
|
||||
@file:OptIn(ExperimentalTime::class)
|
||||
package test.time
|
||||
|
||||
import kotlin.test.*
|
||||
@@ -44,4 +44,4 @@ class DurationUnitTest {
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
@file:UseExperimental(ExperimentalTime::class)
|
||||
@file:OptIn(ExperimentalTime::class)
|
||||
package test.time
|
||||
|
||||
import kotlin.random.Random
|
||||
@@ -68,4 +68,4 @@ class MeasureTimeTest {
|
||||
assertEquals(expectedResult, result)
|
||||
assertEquals(result.nanoseconds, elapsed2)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
@file:UseExperimental(ExperimentalTime::class)
|
||||
@file:OptIn(ExperimentalTime::class)
|
||||
package test.time
|
||||
|
||||
import kotlin.test.*
|
||||
@@ -59,4 +59,4 @@ class TestTimeSourceTest {
|
||||
timeSource += 1.9.nanoseconds
|
||||
assertEquals(1.nanoseconds, mark.elapsedNow())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
@file:UseExperimental(ExperimentalTime::class)
|
||||
|
||||
@file:OptIn(ExperimentalTime::class)
|
||||
package test.time
|
||||
|
||||
import kotlin.test.*
|
||||
@@ -50,4 +51,4 @@ class TimeMarkTest {
|
||||
markPast1.assertHasPassed(true)
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user