Cleanup in compiler modules

This commit is contained in:
Ilya Gorbunov
2015-12-26 12:49:22 +03:00
parent 911adfd04d
commit 80916d5ed7
132 changed files with 322 additions and 322 deletions
@@ -41,7 +41,7 @@ public object Main {
classpath.add(".")
var i = 0
while (i < args.size()) {
while (i < args.size) {
val arg = args[i]
if (collectingArguments) {
arguments.add(arg)
@@ -50,7 +50,7 @@ public object Main {
}
fun next(): String {
if (++i == args.size()) {
if (++i == args.size) {
throw RunnerException("argument expected to $arg")
}
return args[i]
@@ -105,7 +105,7 @@ public object Main {
run(args)
}
catch (e: RunnerException) {
System.err.println("error: " + e.getMessage())
System.err.println("error: " + e.message)
System.exit(1)
}
}
@@ -85,7 +85,7 @@ class JarRunner(private val path: String) : AbstractRunner() {
}
}
catch (e: IOException) {
throw RunnerException("could not read manifest from " + path + ": " + e.getMessage())
throw RunnerException("could not read manifest from " + path + ": " + e.message)
}
?: throw RunnerException("no Main-Class entry found in manifest in $path")