Get rid of deprecated annotations and modifiers in stdlib (besides JS)
This commit is contained in:
@@ -8,7 +8,7 @@ import org.junit.Test as test
|
||||
|
||||
class LazyJVMTest {
|
||||
|
||||
test fun lazyInitializationForcedOnSerialization() {
|
||||
@test fun lazyInitializationForcedOnSerialization() {
|
||||
for(mode in listOf(LazyThreadSafetyMode.SYNCHRONIZED, LazyThreadSafetyMode.NONE)) {
|
||||
val lazy = lazy(mode) { "initialized" }
|
||||
assertFalse(lazy.isInitialized())
|
||||
|
||||
@@ -6,7 +6,7 @@ import org.junit.Test as test
|
||||
|
||||
class LazyTest {
|
||||
|
||||
test fun initializationCalledOnce() {
|
||||
@test fun initializationCalledOnce() {
|
||||
var callCount = 0
|
||||
val lazyInt = lazy { ++callCount }
|
||||
|
||||
@@ -20,7 +20,7 @@ class LazyTest {
|
||||
assertEquals(1, callCount)
|
||||
}
|
||||
|
||||
test fun alreadyInitialized() {
|
||||
@test fun alreadyInitialized() {
|
||||
val lazyInt = lazyOf(1)
|
||||
|
||||
assertTrue(lazyInt.isInitialized())
|
||||
@@ -28,7 +28,7 @@ class LazyTest {
|
||||
}
|
||||
|
||||
|
||||
test fun lazyToString() {
|
||||
@test fun lazyToString() {
|
||||
var callCount = 0
|
||||
val lazyInt = lazy { ++callCount }
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ class TODOTest {
|
||||
}
|
||||
|
||||
|
||||
test fun usage() {
|
||||
@test fun usage() {
|
||||
val inst = PartiallyImplementedClass()
|
||||
|
||||
assertNotImplemented { inst.prop }
|
||||
|
||||
Reference in New Issue
Block a user