Deprecate parseInt and parseFloat. Replace deprecated usages in tests.
#KT-4497
This commit is contained in:
@@ -69,6 +69,6 @@ inline fun <T, R> T.perform(job: (T)-> R) : R {
|
||||
return job(this)
|
||||
}
|
||||
|
||||
inline fun String.toInt2() : Int = parseInt(this)
|
||||
inline fun String.toInt2() : Int = this.toInt()
|
||||
|
||||
class RuntimeExceptionWithValue(val value: String) : RuntimeException()
|
||||
@@ -140,6 +140,6 @@ external object Number {
|
||||
fun parseInt(str: String): Int = noImpl
|
||||
}
|
||||
|
||||
inline fun String.toInt2(): Int = parseInt(this)
|
||||
inline fun String.toInt2(): Int = this.toInt()
|
||||
|
||||
class RuntimeExceptionWithValue(val value: String = "") : RuntimeException()
|
||||
@@ -104,4 +104,4 @@ inline fun <T, R> T.performWithFailFinally(job: (T)-> R, failJob : (e: RuntimeEx
|
||||
}
|
||||
}
|
||||
|
||||
inline fun String.toInt2() : Int = parseInt(this)
|
||||
inline fun String.toInt2() : Int = this.toInt()
|
||||
Reference in New Issue
Block a user