Deprecate parseInt and parseFloat. Replace deprecated usages in tests.
#KT-4497
This commit is contained in:
@@ -32,7 +32,7 @@ fun main(args: Array<String>) {
|
||||
printBottles(99)
|
||||
}
|
||||
else {
|
||||
val bottles = parseInt(args[0]);
|
||||
val bottles = args[0].toIntOrNull()
|
||||
if (bottles != null) {
|
||||
printBottles(bottles);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user