Migrate UseExperimental->OptIn in project sources

This commit is contained in:
Alexander Udalov
2020-01-28 15:35:42 +01:00
parent 125b39d9be
commit 795d6ab407
164 changed files with 213 additions and 211 deletions
+2 -2
View File
@@ -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())
}
}
}
+3 -2
View File
@@ -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)
}
}
}