Cleanup deprecated symbol usages in testData

This commit is contained in:
Ilya Gorbunov
2016-01-16 20:10:40 +03:00
parent eefbd72a64
commit 25c4453dc5
403 changed files with 933 additions and 921 deletions
@@ -40,7 +40,7 @@ fun test2() : Int {
}
return result
} catch (e: RuntimeException) {
return e.getMessage()!!.toInt2()!!
return e.message!!.toInt2()!!
}
}
@@ -18,7 +18,7 @@ fun test11(): Int {
}
},
{ ex, thizz ->
if (ex.getMessage() == "2") {
if (ex.message == "2") {
thizz.value
} else {
-11111
@@ -66,7 +66,7 @@ fun test3(): Int {
})
return res
} catch (e: RuntimeException) {
return e.getMessage()?.toInt2()!!
return e.message?.toInt2()!!
}
}
@@ -81,7 +81,7 @@ fun test33(): Int {
}
},
{ ex, thizz ->
if (ex.getMessage() == "-2") {
if (ex.message == "-2") {
throw RuntimeException("-3")
} else {
-11111
@@ -89,7 +89,7 @@ fun test33(): Int {
})
return res
} catch (e: RuntimeException) {
return e.getMessage()!!.toInt2()!!
return e.message!!.toInt2()!!
}
}
@@ -57,7 +57,7 @@ fun test3(): Int {
})
return res
} catch (e: RuntimeException) {
return e.getMessage()?.toInt()!!
return e.message?.toInt()!!
}
}