Get rid of deprecated annotations and modifiers in stdlib (besides JS)

This commit is contained in:
Denis Zharkov
2015-09-14 16:35:30 +03:00
parent 9c4564a5a6
commit 5cecaa6f87
133 changed files with 1203 additions and 1085 deletions
+1 -1
View File
@@ -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())
+3 -3
View File
@@ -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 }
+1 -1
View File
@@ -37,7 +37,7 @@ class TODOTest {
}
test fun usage() {
@test fun usage() {
val inst = PartiallyImplementedClass()
assertNotImplemented { inst.prop }