Fix docs build by replacing an expression which crashes Dokka with an older more verbose notation.

This commit is contained in:
Clinton Alexander 2017-05-31 21:05:41 +01:00
parent 4bd38d381a
commit 53e8fe23d7

View File

@ -104,7 +104,9 @@ fun main(args: Array<String>) {
println("Unable to load the configuration file: ${e.rootCause.message}") println("Unable to load the configuration file: ${e.rootCause.message}")
exitProcess(2) exitProcess(2)
} }
SerialFilter.install(if (conf.bftReplicaId != null) ::bftSMaRtSerialFilter else ::defaultSerialFilter) // TODO: Replace with "::funcName" notation when Dokka is upgraded to not crash when analysing the notation
val filterFunc = if (conf.bftReplicaId != null) { it: Class<*> -> bftSMaRtSerialFilter(it) } else { it: Class<*> -> defaultSerialFilter(it) }
SerialFilter.install(filterFunc)
if (cmdlineOptions.isRegistration) { if (cmdlineOptions.isRegistration) {
println() println()
println("******************************************************************") println("******************************************************************")