From 53e8fe23d719259cc8e71836031ed625ea639705 Mon Sep 17 00:00:00 2001 From: Clinton Alexander Date: Wed, 31 May 2017 21:05:41 +0100 Subject: [PATCH] Fix docs build by replacing an expression which crashes Dokka with an older more verbose notation. --- node/src/main/kotlin/net/corda/node/Corda.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/node/src/main/kotlin/net/corda/node/Corda.kt b/node/src/main/kotlin/net/corda/node/Corda.kt index f293552a3c..40991b33d0 100644 --- a/node/src/main/kotlin/net/corda/node/Corda.kt +++ b/node/src/main/kotlin/net/corda/node/Corda.kt @@ -104,7 +104,9 @@ fun main(args: Array) { println("Unable to load the configuration file: ${e.rootCause.message}") 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) { println() println("******************************************************************")