Fix "Should be replaced with Kotlin function" warnings

This commit is contained in:
Dmitry Gridin
2019-04-16 12:12:06 +07:00
parent d738a12b86
commit 3bed360c98
77 changed files with 161 additions and 99 deletions
@@ -7,6 +7,7 @@ package org.jetbrains.kotlin.kotlinp
import java.io.File
import java.io.IOException
import kotlin.system.exitProcess
object Main {
private fun run(args: Array<String>) {
@@ -60,7 +61,7 @@ object Main {
run(args)
} catch (e: KotlinpException) {
System.err.println("error: " + e.message)
System.exit(1)
exitProcess(1)
}
}
@@ -75,7 +76,7 @@ where possible options include:
-help (-h) Print a synopsis of options
"""
)
System.exit(0)
exitProcess(0)
}
private fun printVersionAndExit() {
@@ -83,6 +84,6 @@ where possible options include:
val version = "@snapshot@"
println("Kotlin version " + version + " (JRE " + System.getProperty("java.runtime.version") + ")")
System.exit(0)
exitProcess(0)
}
}