@@ -224,12 +224,10 @@ class JpsKotlinCompilerRunner : KotlinCompilerRunner<JpsCompilerEnvironment>() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun getReturnCodeFromObject(rc: Any?): String {
|
private fun getReturnCodeFromObject(rc: Any?): String = when {
|
||||||
when {
|
rc == null -> INTERNAL_ERROR
|
||||||
rc == null -> return INTERNAL_ERROR
|
ExitCode::class.java.name == rc::class.java.name -> rc.toString()
|
||||||
ExitCode::class.java.name == rc::class.java.name -> return rc.toString()
|
else -> throw IllegalStateException("Unexpected return: " + rc)
|
||||||
else -> throw IllegalStateException("Unexpected return: " + rc)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun getDaemonConnection(environment: JpsCompilerEnvironment): CompileServiceSession? =
|
override fun getDaemonConnection(environment: JpsCompilerEnvironment): CompileServiceSession? =
|
||||||
|
|||||||
Reference in New Issue
Block a user